diff options
-rw-r--r-- | ranger/core/actions.py | 2 |
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: |