dtcenter / METdataio

https://metdataio.readthedocs.io/en/latest/index.html
Apache License 2.0
5 stars 3 forks source link

read_files.py needs try/excepts inside of loops #295

Closed mollybsmith-noaa closed 4 months ago

mollybsmith-noaa commented 4 months ago

Describe the Problem

In read_files.py, there's a try/except outside of the main read loop (line 88), but not within the loop itself (line 120). This means that if read_files.py encounters a bad file within the loop, it throws out all of the files within that batch instead of just the one.

Expected Behavior

The script should fail to an except within the loop, which results in only the one bad file being discarded.