summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/console.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 06552ef6..733e2b8b 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -58,7 +58,10 @@ class Console(Widget):
 				pass
 			else:
 				for entry in self.history_backup:
-					f.write(entry + '\n')
+					try:
+						f.write(entry + '\n')
+					except UnicodeEncodeError:
+						pass
 				f.close()
 
 	def draw(self):