summary refs log tree commit diff stats
path: root/ranger/gui/curses_shortcuts.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/curses_shortcuts.py')
-rw-r--r--ranger/gui/curses_shortcuts.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py
index 648292c5..3d2b7d18 100644
--- a/ranger/gui/curses_shortcuts.py
+++ b/ranger/gui/curses_shortcuts.py
@@ -5,7 +5,6 @@ from __future__ import (absolute_import, division, print_function)
 
 import sys
 import curses
-import _curses
 
 from ranger.gui.color import get_color
 from ranger.core.shared import SettingsAware
@@ -72,7 +71,7 @@ class CursesShortcuts(SettingsAware):
         attr = self.settings.colorscheme.get_attr(*keys)
         try:
             self.win.attrset(attr)
-        except _curses.error:
+        except curses.error:
             pass
 
     def color_at(self, y, x, wid, *keys):
@@ -80,13 +79,13 @@ class CursesShortcuts(SettingsAware):
         attr = self.settings.colorscheme.get_attr(*keys)
         try:
             self.win.chgat(y, x, wid, attr)
-        except _curses.error:
+        except curses.error:
             pass
 
     def set_fg_bg_attr(self, fg, bg, attr):
         try:
             self.win.attrset(curses.color_pair(get_color(fg, bg)) | attr)
-        except _curses.error:
+        except curses.error:
             pass
 
     def color_reset(self):