Skip to content

Commit

Permalink
Add text to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss committed Oct 7, 2024
1 parent 54de915 commit 4ddce41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/weather_models/precip_rdps_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def generate_24_hour_accumulating_precip_raster(timestamp: datetime):
yesterday_time = timestamp - timedelta(days=1)
(yesterday_data, _, _) = await read_into_memory(yesterday_key)
if yesterday_data is None:
raise ValueError("No precip raster data for %s" % yesterday_key)
raise ValueError("No precip raster data for yesterday_key: %s" % yesterday_key)

Check warning on line 102 in api/app/weather_models/precip_rdps_model.py

View check run for this annotation

Codecov / codecov/patch

api/app/weather_models/precip_rdps_model.py#L102

Added line #L102 was not covered by tests

later_precip = TemporalPrecip(timestamp=timestamp, precip_amount=day_data)
earlier_precip = TemporalPrecip(timestamp=yesterday_time, precip_amount=yesterday_data)
Expand Down

0 comments on commit 4ddce41

Please sign in to comment.