summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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):