diff options
author | hut <hut@lavabit.com> | 2010-01-06 01:57:21 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-06 01:57:21 +0100 |
commit | 111fd52647f141932d2fd619fa7e2de797c14f78 (patch) | |
tree | 8bce76e98737a87bea5114ad842772ab046d7c60 /ranger | |
parent | b595639f3be05ea81fb95cafa0000d3c8a99d722 (diff) | |
download | ranger-111fd52647f141932d2fd619fa7e2de797c14f78.tar.gz |
curses_shortcuts: catch TypeError at addstr
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/curses_shortcuts.py | 4 |
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): |