mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Rename all EnvironmentError to OSError.
Change version number to 1.0a2-dev1. Check only on Python >= 3.3.
This commit is contained in:
1 parent
20597e29df
commit
f4dd096a8b
11 files changed
+40
-30
No files matched your search
@@ -467,7 +467,7 @@ class VM(object):
|
||||
with open(config_path, "w") as f:
|
||||
log.info("saving startup-config to {}".format(router.startup_config))
|
||||
f.write(config)
|
||||
except EnvironmentError as e:
|
||||
except OSError as e:
|
||||
raise DynamipsError("Could not save the startup configuration {}: {}".format(config_path, e))
|
||||
|
||||
if private_config_base64:
|
||||
@@ -478,7 +478,7 @@ class VM(object):
|
||||
with open(config_path, "w") as f:
|
||||
log.info("saving private-config to {}".format(router.private_config))
|
||||
f.write(config)
|
||||
except EnvironmentError as e:
|
||||
except OSError as e:
|
||||
raise DynamipsError("Could not save the private configuration {}: {}".format(config_path, e))
|
||||
|
||||
except DynamipsError as e:
|
||||
|
||||
Reference in new issue
Block a user