diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-27 16:13:31 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-27 16:13:31 +0100 |
commit | 66f0a4622620f4ccccf54effd77880a3d9e0d43a (patch) | |
tree | b84d964edfae34345cd489b0dcaedecea03fb52f | |
parent | 44d4f0be00109d8035ec9f158810c0251803e0fc (diff) | |
download | ranger-66f0a4622620f4ccccf54effd77880a3d9e0d43a.tar.gz |
Fix #1452 for Python 2 too
-rw-r--r-- | ranger/gui/curses_shortcuts.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py index 8dce5869..fcd2be30 100644 --- a/ranger/gui/curses_shortcuts.py +++ b/ranger/gui/curses_shortcuts.py @@ -43,7 +43,7 @@ class CursesShortcuts(SettingsAware): try: self.win.addstr(*_fix_surrogates(args)) - except (curses.error, UnicodeError, ValueError): + except (curses.error, UnicodeError, ValueError, TypeError): pass def addnstr(self, *args): @@ -51,13 +51,13 @@ class CursesShortcuts(SettingsAware): try: self.win.addnstr(*args) - except (curses.error, TypeError, ValueError): + except (curses.error, TypeError, ValueError, TypeError): if len(args) > 2: self.win.move(y, x) try: self.win.addnstr(*_fix_surrogates(args)) - except (curses.error, UnicodeError, ValueError): + except (curses.error, UnicodeError, ValueError, TypeError): pass def addch(self, *args): |