summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2019-01-27 16:13:31 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2019-01-27 16:13:31 +0100
commit66f0a4622620f4ccccf54effd77880a3d9e0d43a (patch)
treeb84d964edfae34345cd489b0dcaedecea03fb52f /ranger
parent44d4f0be00109d8035ec9f158810c0251803e0fc (diff)
downloadranger-66f0a4622620f4ccccf54effd77880a3d9e0d43a.tar.gz
Fix #1452 for Python 2 too
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/curses_shortcuts.py6
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):