[rhel7-branch 1/1] Add OSError to list of errors in updateSysfsPath (#1252949)
bcl
installerbot-noreply at redhat.com
Mon Aug 17 19:19:03 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
One more error that pyudev can raise.
Resolves: rhbz#1252949
---
blivet/devices/storage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devices/storage.py b/blivet/devices/storage.py
index a17382d..41f0bae 100644
--- a/blivet/devices/storage.py
+++ b/blivet/devices/storage.py
@@ -300,7 +300,7 @@ def updateSysfsPath(self):
# ValueErrors and EnvironmentErrors that may be raised. So catch
# those errors, but also catch DeviceNotFoundError, which is the
# appropriate exception and which it may raise in future.
- except (pyudev.DeviceNotFoundError, EnvironmentError, ValueError) as e:
+ except (pyudev.DeviceNotFoundError, EnvironmentError, ValueError, OSError) as e:
log.error("failed to update sysfs path for %s: %s", self.name, e)
self.sysfsPath = ''
else:
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/0cbc12a8f434b240ea9ce5e2843d5a734e6474c7
More information about the anaconda-patches
mailing list