summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index d0ccfe2b..c0d3e025 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -625,7 +625,10 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 			else:
 				return found
 		else:
-			return open(path, 'r')
+			try:
+				return open(path, 'r')
+			except:
+				return None
 
 	# --------------------------
 	# -- Tabs