From cfb0c8feaf61ee8ba18361f7c293dab8adf8cf22 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 6 Apr 2010 04:16:07 +0200 Subject: widgets.console: Catch a harmless exception --- ranger/gui/widgets/console.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index 6caf9cda..d241d4cd 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -162,7 +162,11 @@ class Console(Widget): except KeyError: # An unclean hack to allow unicode input. # This whole part should be replaced. - self.type_key(chr(keytuple[0])) + try: + chrkey = chr(keytuple[0]) + except: + return + self.type_key(chrkey) self.env.key_clear() return -- cgit 1.4.1-2-gfad0