Skip to content

Commit

Permalink
fix: add missing raise statement in RS Data API (#3025)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaidisido authored Nov 21, 2024
1 parent d485112 commit ff409ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awswrangler/data_api/redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ def _execute_statement(
parameters: list[dict[str, Any]] | None = None,
) -> str:
if transaction_id:
exceptions.InvalidArgument("`transaction_id` not supported for Redshift Data API")
raise exceptions.InvalidArgument("`transaction_id` not supported for Redshift Data API")
if parameters:
exceptions.InvalidArgument("`parameters` not supported for Redshift Data API")
raise exceptions.InvalidArgument("`parameters` not supported for Redshift Data API")

self._validate_redshift_target()
self._validate_auth_method()
Expand Down

0 comments on commit ff409ff

Please sign in to comment.