nowcasting_dataset icon indicating copy to clipboard operation
nowcasting_dataset copied to clipboard

When a warning or exception is raised, always say which DataSource the warning is coming from

Open JackKelly opened this issue 3 years ago • 0 comments

Detailed Description

For example, the logs for #437 are ambiguous about which Datasource is producing the warning.

Possible Implementation

I think we need some code somewhere which wraps all our other code in a try... except... block, and always logs the name of the DataSource... something like:

try:
    do_something()
except:
    log.exception(f"Exception raises from {data_source_name}")
    raise

JackKelly avatar Nov 18 '21 09:11 JackKelly