From 111fd52647f141932d2fd619fa7e2de797c14f78 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 6 Jan 2010 01:57:21 +0100 Subject: curses_shortcuts: catch TypeError at addstr --- ranger/gui/curses_shortcuts.py | 4 ++-- 1 file 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): -- cgit 1.4.1-2-gfad0