main.py: print the output of an ImportError to help in debugging.
authorBrian Dolbec <dolsen@gentoo.org>
Fri, 3 Jan 2014 18:48:31 +0000 (10:48 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Wed, 2 Apr 2014 20:04:23 +0000 (13:04 -0700)
catalyst/main.py

index 4146bcae205bd4253695d2df6e8a17353774b694..bba3cbab2dbbb12a444ffbec11fdc2d2ff71f9fc 100644 (file)
@@ -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