Skip to content

Commit

Permalink
DH5682/fixing the wrong exception handling with tools
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Apr 3, 2024
1 parent 5f2c7a4 commit 6e8f435
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dataherald/sql_generator/dataherald_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: # noqa: PLR0911
return f"Google API returned an error: {e}"
except SQLAlchemyError as e:
return f"Error: {e}"
except Exception as e:
return f"Error: {e}"

return wrapper

Expand Down

0 comments on commit 6e8f435

Please sign in to comment.