summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-08-26 19:21:41 +0000
committerJeremy Katz <katzj@redhat.com>2004-08-26 19:21:41 +0000
commitb06e2353af86ee4dbc2c170bb07ed6f60c2baed4 (patch)
tree42552ab49e35464e8b53c3ef4663a140d07b422e
parent5a40e536390a8103eff7fe532232441123af1214 (diff)
don't log the parted exceptions we can't do anything about
-rwxr-xr-xgui.py2
-rw-r--r--text.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 3212c518f..a9fb476cf 100755
--- a/gui.py
+++ b/gui.py
@@ -221,9 +221,9 @@ def processEvents():
def partedExceptionWindow(exc):
# if our only option is to cancel, let us handle the exception
# in our code and avoid popping up the exception window here.
- log("parted exception: %s: %s" %(exc.type_string,exc.message))
if exc.options == parted.EXCEPTION_CANCEL:
return parted.EXCEPTION_UNHANDLED
+ log("parted exception: %s: %s" %(exc.type_string,exc.message))
print exc.type_string
print exc.message
print exc.options
diff --git a/text.py b/text.py
index 335c2b2b8..71597330d 100644
--- a/text.py
+++ b/text.py
@@ -328,9 +328,9 @@ class InstallInterface:
def partedExceptionWindow(self, exc):
# if our only option is to cancel, let us handle the exception
# in our code and avoid popping up the exception window here.
- log("parted exception: %s: %s" %(exc.type_string,exc.message))
if exc.options == parted.EXCEPTION_CANCEL:
return parted.EXCEPTION_UNHANDLED
+ log("parted exception: %s: %s" %(exc.type_string,exc.message))
buttons = []
buttonToAction = {}
flags = ((parted.EXCEPTION_FIX, N_("Fix")),