read_files.py needs try/excepts inside of loops #295
Labels
component: METdataio
reporting: DTC NOAA BASE
NOAA Office of Atmospheric Research DTC Project
requestor: NOAA/GSL
NOAA Global Systems Laboratory
type: bug
Fix something that is not working
Milestone
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.
The text was updated successfully, but these errors were encountered: