"docs/source/ko/tasks/image_classification.mdx" did not exist on "868d37165f6990ea62e6fe759ac3ab81a3885cb2"
Unverified Commit 7d77d7f7 authored by Jan Philipp Harries's avatar Jan Philipp Harries Committed by GitHub
Browse files

Fix requests connection error during modelcard creation (#26518)



fix requests connection error
Co-authored-by: default avatarJan Philipp Harries <jphme@users.noreply.github.com>
parent ca0379b8
......@@ -387,7 +387,7 @@ class TrainingSummary:
for tag in info.tags:
if tag.startswith("license:"):
self.license = tag[8:]
except (requests.exceptions.HTTPError, HFValidationError):
except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError, HFValidationError):
pass
def create_model_index(self, metric_mapping):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment