enram / vptstools

Python library to transfer and convert vertical profile time series data
https://enram.github.io/vptstools/
MIT License
3 stars 1 forks source link

Provide environment in exception messages #67

Open peterdesmet opened 1 year ago

peterdesmet commented 1 year ago

Suggestion by @TheJenne18 to avoid confusion from what environment notifications are send (#62), it might be useful to provide the os.environment("ENV") in error messages such as:

CLI routine 'vph5_to_vpts --modified-days-ago 2' failed raising error: '<class 'ValueError'>: File name uva/hdf5/dbl/2008/02/17/nldbl_vp_20080217t0000_nl50_v0-3-20.h5 is not a valid ODIM HDF5 file.'.

TheJenne18 commented 1 year ago

We currently don't have an environment variable to determine whether the application is in PROD, UAT, or DEV, so we need to create one called 'ENV'.