We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5bd2b7 commit 0f0e6aeCopy full SHA for 0f0e6ae
pins/drivers.py
@@ -115,9 +115,11 @@ def load_data(
115
116
return json.load(f)
117
118
- # elif meta.type == "file":
119
- # # TODO: update to handle multiple files
120
- # return [str(Path(f.name).absolute())]
+ elif meta.type == "file":
+ raise NotImplementedError(
+ "Methods like `.pin_read()` are not able to read 'file' type pins."
121
+ " Use `.pin_download()` to download the file."
122
+ )
123
124
raise NotImplementedError(f"No driver for type {meta.type}")
125
0 commit comments