From d45b4edc103720a4493814e2d51ae89c79c08315 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 31 Mar 2009 10:37:09 -0400 Subject: If there's a problem finding removable disks, disable save-to-disk. Catching all exception is really drastic, but this is the exception reporting code and we need it to be resiliant to extra errors so we stand a chance of getting things reported. --- text.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'text.py') diff --git a/text.py b/text.py index 8d6c6e563..51c02392f 100644 --- a/text.py +++ b/text.py @@ -242,7 +242,11 @@ class SaveExceptionWindow: toplevel.add(scpGrid, 0, 5, (0, 0, 0, 1)) toplevel.add(buttons, 0, 6, growx=1) - dests = self.anaconda.id.storage.exceptionDisks() + try: + dests = self.anaconda.id.storage.exceptionDisks() + except Exception as e: + log.error("Error when probing exception disks: %s" % e) + dests = [] if len(dests) > 0: for (dev, desc) in dests: -- cgit