Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
be safe against dummy flow
  • Loading branch information
amueller committed Oct 16, 2019
commit 9b6038d2cd39f3d7656b6c998326c7d1ef3a3834
3 changes: 2 additions & 1 deletion openml/extensions/sklearn/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ def _is_cross_validator(self, o: Any) -> bool:

@classmethod
def _is_sklearn_flow(cls, flow: OpenMLFlow) -> bool:
if flow.dependencies is not None and "sklearn" in flow.dependencies:
if (getattr(flow, 'dependencies', None) is not None
and "sklearn" in flow.dependencies):
return True
if flow.external_version is None:
return False
Expand Down