summaryrefslogtreecommitdiff
path: root/menuconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'menuconfig.py')
-rwxr-xr-xmenuconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/menuconfig.py b/menuconfig.py
index 6afc1c4..799cc4a 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -1829,7 +1829,7 @@ def _try_load(filename):
try:
_kconf.load_config(filename)
return True
- except OSError as e:
+ except EnvironmentError as e:
_error("Error loading '{}'\n\n{} (errno: {})"
.format(filename, e.strerror, errno.errorcode[e.errno]))
return False
@@ -1881,7 +1881,7 @@ def _try_save(save_fn, filename, description):
try:
# save_fn() returns a message to print
return save_fn(filename)
- except OSError as e:
+ except EnvironmentError as e:
_error("Error saving {} to '{}'\n\n{} (errno: {})"
.format(description, e.filename, e.strerror,
errno.errorcode[e.errno]))