diff options
author | Matt Wilson <msw@redhat.com> | 2000-07-12 20:05:46 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-07-12 20:05:46 +0000 |
commit | f9b0aace80f9b2068e7f7882c3071c5069ae2b53 (patch) | |
tree | 81c96f35a6897e784dd04fdfc641120144ba7c08 /iw | |
parent | 4c8bdafebc9299559041cec222f33512dfb3577e (diff) | |
download | anaconda-f9b0aace80f9b2068e7f7882c3071c5069ae2b53.tar.gz anaconda-f9b0aace80f9b2068e7f7882c3071c5069ae2b53.tar.xz anaconda-f9b0aace80f9b2068e7f7882c3071c5069ae2b53.zip |
rework exception handling in GUI so we can catch during the todo.doinstall, use pc104 as default kbd
Diffstat (limited to 'iw')
-rw-r--r-- | iw/progress_gui.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py index c228e0f7e..7631ed935 100644 --- a/iw/progress_gui.py +++ b/iw/progress_gui.py @@ -5,6 +5,7 @@ import rpm import time from threading import * from translate import _ +import sys class DoInstall (Thread): def __init__ (self, icw, todo): @@ -13,7 +14,12 @@ class DoInstall (Thread): Thread.__init__ (self) def run (self): - rc = self.todo.doInstall () + from exception import handleException + try: + rc = self.todo.doInstall () + except: + threads_enter () + handleException(self.todo, sys.exc_info()) threads_enter () if rc: self.icw.prevClicked () |