Skip to content

Commit

Permalink
passing pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Brandão <[email protected]>
  • Loading branch information
HolyMichael committed Sep 29, 2023
1 parent d4e8c74 commit 40af1bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deepsearch/cps/cli/data_indices_typer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,13 @@ def upload_files(

if conv_settings is not None:
try:
final_conv_settings = ConversionSettings.parse_obj(json.loads(conv_settings))
final_conv_settings = ConversionSettings.parse_obj(
json.loads(conv_settings)
)
except json.JSONDecodeError:
raise ValueError("Could not parse a ConversionSettings object from --conv-settings flag")
raise ValueError(
"Could not parse a ConversionSettings object from --conv-settings flag"
)
else:
final_conv_settings = None

Expand Down

0 comments on commit 40af1bb

Please sign in to comment.