We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90c8d4d commit 9651415Copy full SHA for 9651415
1 file changed
gluefactory/robust_estimators/__init__.py
@@ -19,12 +19,7 @@ def load_estimator(type, estimator):
19
try:
20
return get_class(path, BaseEstimator)
21
except AssertionError:
22
- mod = __import__(path, fromlist=[""])
23
- try:
24
- return mod.__main_model__
25
- except AttributeError as exc:
26
- print(exc)
27
- continue
+ continue
28
raise RuntimeError(
29
f'Model {estimator} not found in any of [{" ".join(import_paths)}]'
30
)
0 commit comments