about summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-06 12:31:33 +0100
committerhut <hut@lavabit.com>2009-12-06 12:31:33 +0100
commit465bff736d234e57efb2e9232df8882f3fd3a5cb (patch)
treec36725fc98a1e63bfdbe694a96c71cb28d3708f4 /ranger.py
parent4162b636289f065b056e180389456d9f30ee796c (diff)
downloadranger-465bff736d234e57efb2e9232df8882f3fd3a5cb.tar.gz
changing implementation of options
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()