Skip to content

Commit

Permalink
Fix assertions handling in utils module
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Oct 9, 2024
1 parent a00d70e commit e74c141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/steps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def wait_for_transfer(api_clients_config, transfer_uuid):
status = resp.get("status")
return resp
except environment.EnvironmentError as err:
assert AssertionError(
raise AssertionError(
f"Error checking transfer (uuid: {transfer_uuid}) status: {err}"
)

Expand All @@ -771,7 +771,7 @@ def wait_for_ingest(api_clients_config, sip_uuid):
status = resp.get("status")
return resp
except environment.EnvironmentError as err:
assert AssertionError(f"Error checking ingest (uuid: {sip_uuid}) status: {err}")
raise AssertionError(f"Error checking ingest (uuid: {sip_uuid}) status: {err}")


def get_transfer_result(api_clients_config, transfer_uuid):
Expand Down

0 comments on commit e74c141

Please sign in to comment.