More exception handling
This commit is contained in:
parent
f3dc9bb001
commit
1801d069ea
2 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue