summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 66f782e37..cfd387159 100755
--- a/gui.py
+++ b/gui.py
@@ -90,6 +90,10 @@ def processEvents():
mainiteration (FALSE)
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.
+ if exc.options == parted.EXCEPTION_CANCEL:
+ return parted.EXCEPTION_UNHANDLED
print exc.type_string
print exc.message
print exc.options