From 66f0a4622620f4ccccf54effd77880a3d9e0d43a Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Sun, 27 Jan 2019 16:13:31 +0100 Subject: Fix #1452 for Python 2 too --- ranger/gui/curses_shortcuts.py | 6 +++--- 1 file 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): -- cgit 1.4.1-2-gfad0