From: Brian Dolbec Date: Fri, 3 Jan 2014 18:48:31 +0000 (-0800) Subject: main.py: print the output of an ImportError to help in debugging. X-Git-Url: http://git.tremily.us/?p=catalyst.git;a=commitdiff_plain;h=876edf3306f3d1c739f60199bef6082e4ac96459 main.py: print the output of an ImportError to help in debugging. --- diff --git a/catalyst/main.py b/catalyst/main.py index 4146bcae..bba3cbab 100644 --- a/catalyst/main.py +++ b/catalyst/main.py @@ -227,9 +227,10 @@ def import_modules(): raise CatalystError,"Can't find " + x + ".py plugin in " + \ module_dir - except ImportError: + except ImportError as e: print "!!! catalyst: Python modules not found in "+\ module_dir + "; exiting." + print e sys.exit(1) return targetmap