Skip to content

Commit 13cccc4

Browse files
committed
FIX: Disallow str and dict for Dataset files argument
1 parent a15cff2 commit 13cccc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

octue/resources/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(
8080
self._instantiated_from_files_argument = False
8181

8282
if files:
83-
if not isinstance(files, Iterable):
83+
if not isinstance(files, Iterable) or isinstance(files, (dict, str)):
8484
raise InvalidInputException(
8585
"The `files` parameter of a `Dataset` must be an iterable of `Datafile` instances, strings, or "
8686
f"dictionaries. Received {files!r} instead."

0 commit comments

Comments
 (0)