Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Mnoble-19 and coderabbitai[bot] authored Oct 11, 2024
1 parent 269b3e5 commit b317bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workflows/airqo_etl_utils/bigquery_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,8 @@ def fetch_device_data_for_satellite_job(
) -> pd.DataFrame:
try:
pd.to_datetime(start_date_time)
except ValueError:
raise ValueError(f"Invalid start date time: {start_date_time}")
except ValueError as e:
raise ValueError(f"Invalid start date time: {start_date_time}") from e

query = f"""
SELECT DISTINCT
Expand Down

0 comments on commit b317bd1

Please sign in to comment.