diff --git a/.changeset/better-results-try.md b/.changeset/better-results-try.md new file mode 100644 index 0000000000000..cff2e9ae33c09 --- /dev/null +++ b/.changeset/better-results-try.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +fix:Catch OSErrors in `HuggingFaceDatasetSaver._deserialize_components` diff --git a/gradio/flagging.py b/gradio/flagging.py index 81b8d083f4b2c..6bf5c4db09ccd 100644 --- a/gradio/flagging.py +++ b/gradio/flagging.py @@ -430,7 +430,7 @@ def _deserialize_components( 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)