Fixed bug in class_import
This commit is contained in:
parent
2782e03478
commit
bb5b2b6fd8
1 changed files with 1 additions and 0 deletions
|
|
@ -948,6 +948,7 @@ def class_from_module(path, defaultpaths=None):
|
||||||
if not str(ex).startswith("No module named"):
|
if not str(ex).startswith("No module named"):
|
||||||
exc = sys.exc_info()
|
exc = sys.exc_info()
|
||||||
raise exc[1], None, exc[2]
|
raise exc[1], None, exc[2]
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
cls = getattr(mod, clsname)
|
cls = getattr(mod, clsname)
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue