update_status: handle requests exceptions as well

like in other places. they leak through..
This commit is contained in:
Christoph Reiter 2021-04-26 19:47:21 +02:00
parent 41e990ace1
commit cbff3ed167

View File

@ -919,7 +919,7 @@ def update_status(pkgs: List[Package]):
with make_writable(release): with make_writable(release):
new_asset = release.upload_asset_from_memory( # type: ignore new_asset = release.upload_asset_from_memory( # type: ignore
fileobj, len(content), asset_name) fileobj, len(content), asset_name)
except GithubException as e: except (GithubException, requests.RequestException) as e:
print(e) print(e)
return return