Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudw committed Aug 23, 2024
1 parent 81e7f6c commit aa1fd17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions metaflow/plugins/aip/aip_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def run(
notify_on_success=notify_on_success,
sqs_url_on_error=sqs_url_on_error,
sqs_role_arn_on_error=sqs_role_arn_on_error,
add_default_cards=True,
add_default_cards=add_default_cards,
)

if yaml_only:
Expand Down Expand Up @@ -559,7 +559,7 @@ def create(
notify_on_success=notify_on_success,
sqs_url_on_error=sqs_url_on_error,
sqs_role_arn_on_error=sqs_role_arn_on_error,
add_default_cards=True,
add_default_cards=add_default_cards,
)

if yaml_only:
Expand Down Expand Up @@ -680,7 +680,7 @@ def make_flow(
notify_on_success,
sqs_url_on_error,
sqs_role_arn_on_error,
add_default_cards=True,
add_default_cards,
):
"""
Analogous to step_functions_cli.py
Expand Down
5 changes: 3 additions & 2 deletions metaflow/plugins/aip/aip_metaflow_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def _write_card_artifacts(
try:
with open(file_name, "w") as card_file:
card_file.write(card.get())
except Exception as e:
logging.exception(f"Failed to write card {i} of type {card.type}: {e}")
except Exception:
logging.error(f"Failed to write card {i} of type {card.type}")
raise
i = i + 1


Expand Down

0 comments on commit aa1fd17

Please sign in to comment.