More exception handling

This commit is contained in:
oitsjustjose 2023-04-30 12:06:58 -05:00
commit 1801d069ea
2 changed files with 10 additions and 2 deletions

View file

@ -119,7 +119,11 @@ class FastProvider(MgmtApiLogger):
rm(jar_fn)
break
except (ReadTimeoutError, TimeoutError):
except (
requests.exceptions.ReadTimeout,
ReadTimeoutError,
TimeoutError,
):
tries += 1
msg = f"🕜 Timed out uploading {jar_fn}. Manual upload required"
continue

View file

@ -241,7 +241,11 @@ class SlowProvider(MgmtApiLogger):
rm(f"./out/{self._job.curseforge_slug}/{fpath}")
break
except (ReadTimeoutError, TimeoutError):
except (
requests.exceptions.ReadTimeout,
ReadTimeoutError,
TimeoutError,
):
tries += 1
msg = f"🕜 Timed out uploading {fpath}. Manual upload required"
continue