Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-02-26 13:44:16 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-02-26 13:44:16 (GMT)
commit3073186ae64a768e7cefa5fc4f7226698cf7a075 (patch)
tree1d02831971eff16f1ffadc06f8882d9fed730b4a
parent226d01d55ad49d160d03ff9bd0fd570490f61c6b (diff)
Catch all exceptions (thanks to silbe)
-rw-r--r--src/jarabe/view/keyhandler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jarabe/view/keyhandler.py b/src/jarabe/view/keyhandler.py
index 65085fa..f0f27b7 100644
--- a/src/jarabe/view/keyhandler.py
+++ b/src/jarabe/view/keyhandler.py
@@ -16,7 +16,6 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import os
-import signal
import logging
import subprocess
import errno
@@ -105,9 +104,9 @@ class KeyHandler(object):
if key in _actions_table:
raise ValueError('Key %r is already bound' % key)
_actions_table[key] = module
- except Exception:
+ except:
logging.error('Exception while loading extension:\n' + \
- ''.join(traceback.format_exception(*sys.exc_info())))
+ traceback.format_exc())
self._key_grabber.grab_keys(_actions_table.keys())