More exception handling
This commit is contained in:
parent
24c565068a
commit
54876a052d
1 changed files with 4 additions and 0 deletions
|
|
@ -115,6 +115,10 @@ class FastProvider(MgmtApiLogger):
|
||||||
)
|
)
|
||||||
|
|
||||||
rm(jar_fn)
|
rm(jar_fn)
|
||||||
|
except (ProtocolError, requests.exceptions.ChunkedEncodingError):
|
||||||
|
self.logmsg(f"🔥 Uploading {display_nm} to Modrinth failed, skipping..")
|
||||||
|
statuses.append(Status.FAIL)
|
||||||
|
continue
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
self.logmsg(f"🕜 Timed out uploading {jar_fn}. Manual upload required")
|
self.logmsg(f"🕜 Timed out uploading {jar_fn}. Manual upload required")
|
||||||
statuses.append(Status.FAIL)
|
statuses.append(Status.FAIL)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue