summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 62092617..d73270d5 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -164,11 +164,13 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
         - "depth" specifies the recursion depth
         """
 
-        assert mode == "normal" or mode in POSSIBLE_LINEMODES
-
         if mode == "normal":
             mode = DEFAULT_LINEMODE
 
+        if mode not in POSSIBLE_LINEMODES:
+            self.notify("Unhandled linemode: `%s'" % mode, bad=True)
+            return
+
         if directory is None:
             directory = self.fm.thisdir