Skip to content

Commit edb2a74

Browse files
fix string check
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 2dafdf7 commit edb2a74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openml/flows/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def flow_exists(name: str, external_version: str) -> int | bool:
173173
"""
174174
if not (isinstance(name, str) and len(name) > 0):
175175
raise ValueError("Argument 'name' should be a non-empty string")
176-
if not (isinstance(name, str) and len(external_version) > 0):
176+
if not (isinstance(external_version, str) and len(external_version) > 0):
177177
raise ValueError("Argument 'version' should be a non-empty string")
178178

179179
return openml._backend.flow.exists(name=name, external_version=external_version)

0 commit comments

Comments
 (0)