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: ...@@ -387,7 +387,7 @@ class TrainingSummary:
for tag in info.tags: for tag in info.tags:
if tag.startswith("license:"): if tag.startswith("license:"):
self.license = tag[8:] self.license = tag[8:]
except (requests.exceptions.HTTPError, HFValidationError): except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError, HFValidationError):
pass pass
def create_model_index(self, metric_mapping): 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