[PATCH 1/6] Catch the right exception when setting up raid options ui. (#873486)

David Lehman dlehman at redhat.com
Wed Nov 7 21:57:34 UTC 2012


---
 pyanaconda/ui/gui/spokes/custom.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 48dd080..e25e97a 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -57,6 +57,7 @@ from pyanaconda.storage.errors import NoDisksError
 from pyanaconda.storage.errors import NotEnoughFreeSpaceError
 from pyanaconda.storage.errors import ErrorRecoveryFailure
 from pyanaconda.storage.errors import CryptoError
+from pyanaconda.storage.errors import MDRaidError
 from pyanaconda.storage.devicelibs import mdraid
 from pyanaconda.storage.devices import LUKSDevice
 
@@ -1446,7 +1447,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         widget_dict = self._get_raid_widget_dict(device_type)
         try:
             base_size = factory.device_size
-        except ValueError as e:
+        except MDRaidError as e:
             log.error("failed to populate UI raid options: %s" % e)
             return
 
-- 
1.7.7.6



More information about the anaconda-patches mailing list