summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-06 04:16:07 +0200
committerhut <hut@lavabit.com>2010-04-06 04:16:07 +0200
commitcfb0c8feaf61ee8ba18361f7c293dab8adf8cf22 (patch)
tree9cd9e761b4adba3bfcabf449b768b63652f3f89f
parentfdd3b1923fca1a0815e8001a3ef10a1e6cad55b1 (diff)
downloadranger-cfb0c8feaf61ee8ba18361f7c293dab8adf8cf22.tar.gz
widgets.console: Catch a harmless exception
-rw-r--r--ranger/gui/widgets/console.py6
1 files changed, 5 insertions, 1 deletions
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