diff options
author | Matt Wilson <msw@redhat.com> | 2001-08-06 22:18:30 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-08-06 22:18:30 +0000 |
commit | 85eb29d4a76193b4e29cd4aae3cada855e82e311 (patch) | |
tree | 494b76230eb8190272d882fd156a756a4b2161d3 /text.py | |
parent | dc96bbe7abb5fa207325edd1e138e606a0fcc70c (diff) | |
download | anaconda-85eb29d4a76193b4e29cd4aae3cada855e82e311.tar.gz anaconda-85eb29d4a76193b4e29cd4aae3cada855e82e311.tar.xz anaconda-85eb29d4a76193b4e29cd4aae3cada855e82e311.zip |
if our only option is to cancel, don't bother showing the dialog, we'll need to catch the exception in our code anyway and we can just display the error there. (#51048)
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -270,6 +270,10 @@ class InstallInterface: return None 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. + if exc.options == parted.EXCEPTION_CANCEL: + return parted.EXCEPTION_UNHANDLED buttons = [] buttonToAction = {} flags = ((parted.EXCEPTION_FIX, N_("Fix")), |