catch java exceptions, too

This commit is contained in:
jomo
2014-06-21 11:05:59 +02:00
parent 1e399a002a
commit 0494b82bf0

View File

@@ -36,8 +36,8 @@ for module in modules:
try:
mod[module] = __import__(module)
log("Module %s loaded." % module)
except Exception, e:
error("Failed to import module %s: '%s'" % (module, e))
except:
error("Failed to import module %s:" % module)
error(print_traceback())