Skip to content

Commit

Permalink
DH5682/fixing the wrong exception handling with tools (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza authored Apr 3, 2024
1 parent 809ac31 commit 39bef01
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 39bef01

Please sign in to comment.