Skip to content

Commit

Permalink
minor fix: error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-ya committed May 26, 2024
1 parent a8159b5 commit 9cced4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions outpostcli/finetunings.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import click
from outpostkit import Client, Finetunings
from outpostkit.utils import convert_outpost_date_str_to_date
from rich.table import Table

from outpostcli.utils import (
add_options,
api_token_opt,
click_group,
condense_endpt_autogen_configs,
console,
entity_opt,
get_log_level_style_info,
output_style_opt,
)
from outpostkit.utils import convert_outpost_date_str_to_date


@click_group()
Expand Down
2 changes: 1 addition & 1 deletion outpostcli/lfs/part.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def transfer_part(part: PartInfo):
try:
_log.info(f"uploading part of {part.filepath}, part no: {part.no}")
r = retriable_upload_part(part.url, data)
if isinstance(r, LFSException):
if isinstance(r, ProxyLFSException):
return LFSException(code=r.code, message=r.message, doc_url=r.doc_url)
else:
etag = str(r.headers.get("etag"))
Expand Down

0 comments on commit 9cced4e

Please sign in to comment.