Skip to content

Commit 267133e

Browse files
committed
🐛 Small fix
1 parent e1afce2 commit 267133e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tiatoolbox/models/engine/engine_abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _get_model_attr(self: EngineABC, attr_name: str) -> Callable:
381381
return getattr(self.model, attr_name)
382382
except AttributeError:
383383
module = getattr(self.model, "module", None)
384-
return getattr(module, attr_name, None)
384+
return getattr(module, attr_name)
385385

386386
def get_dataloader(
387387
self: EngineABC,

0 commit comments

Comments
 (0)