Skip to content

Commit 42e09da

Browse files
author
Matt George
committed
fixed problem from merge
1 parent 68165f1 commit 42e09da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyres/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def safe_str_to_class(s):
2121
klass = lst[-1]
2222
mod_list = lst[:-1]
2323
module = ".".join(mod_list)
24-
mod = my_import(module)
25-
if hasattr(mod, klass):
26-
return getattr(mod, klass)
27-
else:
24+
mod = my_import(module)
25+
if hasattr(mod, klass):
26+
return getattr(mod, klass)
27+
else:
2828
raise ImportError('')
2929

3030
def str_to_class(s):

0 commit comments

Comments
 (0)