Skip to content

Commit

Permalink
error handling. check for proxy error class
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-ya committed Jun 9, 2024
1 parent d1840f4 commit 40fea09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions outpostcli/lfs/storage_class/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ def s3_multipart_upload(msg: Dict[str, Any]):
parts.append(resp)
pass
complete_resp = complete_multipart_upload(complete_url, parts)
if isinstance(complete_resp, LFSException):
if isinstance(complete_resp, ProxyLFSException):
abort_resp = abort_multipart_upload(abort_url)
if isinstance(abort_resp, LFSException):
if isinstance(abort_resp, ProxyLFSException):
write_msg(
{
"event": "complete",
Expand Down Expand Up @@ -210,7 +210,7 @@ def s3_multipart_upload(msg: Dict[str, Any]):
write_msg({"event": "complete", "oid": oid})
except LFSException as e:
abort_resp = abort_multipart_upload(abort_url)
if isinstance(abort_resp, LFSException):
if isinstance(abort_resp, ProxyLFSException):
write_msg(
{
"event": "complete",
Expand All @@ -237,7 +237,7 @@ def s3_multipart_upload(msg: Dict[str, Any]):
except Exception as e: # noqa: BLE001
abort_resp = abort_multipart_upload(abort_url)
_log.error(e, exc_info=True)
if isinstance(abort_resp, LFSException):
if isinstance(abort_resp, ProxyLFSException):
write_msg(
{
"event": "complete",
Expand Down

0 comments on commit 40fea09

Please sign in to comment.