mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-11 11:19:58 +08:00
Catch OSErrors in HuggingFaceDatasetSaver._deserialize_components
(#9078)
* Update flagging.py * add changeset --------- Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
5350f1feb2
commit
1a9d7297c1
5
.changeset/better-results-try.md
Normal file
5
.changeset/better-results-try.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Catch OSErrors in `HuggingFaceDatasetSaver._deserialize_components`
|
@ -430,7 +430,7 @@ class HuggingFaceDatasetSaver(FlaggingCallback):
|
||||
if not deserialized_path.exists():
|
||||
raise FileNotFoundError(f"File {deserialized} not found")
|
||||
row.append(str(deserialized_path.relative_to(self.dataset_dir)))
|
||||
except (FileNotFoundError, TypeError, ValueError):
|
||||
except (FileNotFoundError, TypeError, ValueError, OSError):
|
||||
deserialized = "" if deserialized is None else str(deserialized)
|
||||
row.append(deserialized)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user