Fixed bug in class_import

This commit is contained in:
Griatch 2015-01-03 15:22:27 +01:00
parent 2782e03478
commit bb5b2b6fd8

View file

@ -948,6 +948,7 @@ def class_from_module(path, defaultpaths=None):
if not str(ex).startswith("No module named"):
exc = sys.exc_info()
raise exc[1], None, exc[2]
continue
try:
cls = getattr(mod, clsname)
break