Commit e277214e authored by Janez K's avatar Janez K

more verbose output on module importer

parent 6b6d6e54
......@@ -50,7 +50,11 @@ def dynamic_import_globals(name, package, localSetAttrFunc):
try:
m = __import__(name, globals(), locals(), ['*'])
except ImportError:
pass
import sys, traceback
print "Exception in user code:"
print '-'*60
traceback.print_exc(file=sys.stdout)
print '-'*60
except:
import sys, traceback
print "Exception in user code:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment