summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 4c7c9482..319b248f 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -42,7 +42,10 @@ def main():
     if arg.list_tagged_files:
         fm = FM()
         try:
-            f = open(fm.confpath('tagged'), 'r')
+            if sys.version_info[0] >= 3:
+                f = open(fm.confpath('tagged'), 'r', errors='replace')
+            else:
+                f = open(fm.confpath('tagged'), 'r')
         except:
             pass
         else: