summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger.py')
-rwxr-xr-xranger.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ranger.py b/ranger.py
index 9a2e59c1..090789c5 100755
--- a/ranger.py
+++ b/ranger.py
@@ -22,9 +22,12 @@ try:
 	from ranger.main import main
 
 except ImportError as errormessage:
-	print(errormessage)
-	print("To run an uninstalled copy of ranger,")
-	print("launch ranger.py in the top directory.")
+	if str(errormessage).endswith("main"):
+		print("Can't import the main module.")
+		print("To run an uninstalled copy of ranger,")
+		print("launch ranger.py in the top directory.")
+	else:
+		raise
 
 else:
 	main()