diff options
Diffstat (limited to 'storage/__init__.py')
-rw-r--r-- | storage/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/__init__.py b/storage/__init__.py index 5b6e0f6e2..e7b53f5b6 100644 --- a/storage/__init__.py +++ b/storage/__init__.py @@ -1507,9 +1507,9 @@ class FSSet(object): try: device.format.setup(options=options, chroot=anaconda.rootPath) - except OSError as (num, msg): + except OSError as e: if intf: - if num == errno.EEXIST: + if e.errno == errno.EEXIST: intf.messageWindow(_("Invalid mount point"), _("An error occurred when trying " "to create %s. Some element of " @@ -1527,8 +1527,8 @@ class FSSet(object): "cannot continue.\n\n" "Press <Enter> to exit the " "installer.") - % (device.format.mountpoint, msg)) - log.error("OSError: (%d) %s" % (num, msg) ) + % (device.format.mountpoint, e.strerror)) + log.error("OSError: (%d) %s" % (e.errno, e.strerror)) sys.exit(0) except SystemError as (num, msg): if raiseErrors: |