Skip to content

Commit

Permalink
Added extra warning/error reset
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Sep 15, 2023
1 parent 3c00a1d commit 2607932
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synop2bufr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,10 @@ def transform(data: str, metadata: str, year: int,
"csv": None
}
}
# Reset warning and error messages array for next iteration
warning_msgs = []
error_msgs = []
continue

# Now determine and load the appropriate mappings
# file depending on the value of the wind indicator.
Expand Down

0 comments on commit 2607932

Please sign in to comment.