summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-06 01:57:21 +0100
committerhut <hut@lavabit.com>2010-01-06 01:57:21 +0100
commit111fd52647f141932d2fd619fa7e2de797c14f78 (patch)
tree8bce76e98737a87bea5114ad842772ab046d7c60
parentb595639f3be05ea81fb95cafa0000d3c8a99d722 (diff)
downloadranger-111fd52647f141932d2fd619fa7e2de797c14f78.tar.gz
curses_shortcuts: catch TypeError at addstr
-rw-r--r--ranger/gui/curses_shortcuts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py
index 6d1bd7e9..75078d24 100644
--- a/ranger/gui/curses_shortcuts.py
+++ b/ranger/gui/curses_shortcuts.py
@@ -15,13 +15,13 @@ class CursesShortcuts(SettingsAware):
 	def addstr(self, *args):
 		try:
 			self.win.addstr(*args)
-		except _curses.error:
+		except (_curses.error, TypeError):
 			pass
 
 	def addnstr(self, *args):
 		try:
 			self.win.addnstr(*args)
-		except _curses.error:
+		except (_curses.error, TypeError):
 			pass
 
 	def color(self, keylist = None, *keys):