summaryrefslogtreecommitdiffstats
path: root/cmdline.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-01-27 14:58:46 -0500
committerDavid Cantrell <dcantrell@redhat.com>2009-02-12 11:29:41 -1000
commitca1472b789e1555a7b0c5ee817e89c9b98cb9706 (patch)
tree83c1842694b06191578d56b7a0260aaef4a9143b /cmdline.py
parente4ceb72d7a801eeaeefbadd0fa672199e10fe0b4 (diff)
downloadanaconda-ca1472b789e1555a7b0c5ee817e89c9b98cb9706.tar.gz
anaconda-ca1472b789e1555a7b0c5ee817e89c9b98cb9706.tar.xz
anaconda-ca1472b789e1555a7b0c5ee817e89c9b98cb9706.zip
Don't provide a special partedExceptionWindow anymore.
Since pyparted has a lot more execption classes now, it makes sense to just let anaconda's regular exception handling framework deal with them. This means a lot of changes throughout are on the way.
Diffstat (limited to 'cmdline.py')
-rw-r--r--cmdline.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/cmdline.py b/cmdline.py
index 4e90fc3db..7b925c9cf 100644
--- a/cmdline.py
+++ b/cmdline.py
@@ -107,20 +107,6 @@ class InstallInterface:
def exceptionWindow(self, shortText, longTextFile):
print(shortText)
- 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.critical("parted exception: %s: %s" %(exc.type_string,exc.message))
- if exc.options == parted.EXCEPTION_CANCEL:
- return parted.EXCEPTION_UNHANDLED
-
- print(_("Parted exceptions can't be handled in command line mode!"))
- print(exc.message)
-
- # don't exit
- while 1:
- time.sleep(5)
-
def waitWindow(self, title, text):
return WaitWindow(title, text)
@@ -131,7 +117,6 @@ class InstallInterface:
anaconda.id.fsset.registerMessageWindow(self.messageWindow)
anaconda.id.fsset.registerProgressWindow(self.progressWindow)
anaconda.id.fsset.registerWaitWindow(self.waitWindow)
- parted.exception_set_handler(self.partedExceptionWindow)
(step, instance) = anaconda.dispatch.currentStep()
while step: