summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/curses_shortcuts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py
index 3d2b7d18..78aad240 100644
--- a/ranger/gui/curses_shortcuts.py
+++ b/ranger/gui/curses_shortcuts.py
@@ -41,7 +41,7 @@ class CursesShortcuts(SettingsAware):
 
                 try:
                     self.win.addstr(*_fix_surrogates(args))
-                except curses.error:
+                except (curses.error, UnicodeError):
                     pass
 
     def addnstr(self, *args):
@@ -55,7 +55,7 @@ class CursesShortcuts(SettingsAware):
 
                 try:
                     self.win.addnstr(*_fix_surrogates(args))
-                except curses.error:
+                except (curses.error, UnicodeError):
                     pass
 
     def addch(self, *args):