about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 83810385..784a6c09 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -379,6 +379,8 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
                 if line.startswith("#") or not line.strip():
                     continue
                 try:
+                    if not isinstance(line, str):
+                        line = line.encode("ascii")
                     self.execute_console(line)
                 except Exception as ex:  # pylint: disable=broad-except
                     if ranger.args.debug: