Skip to content

Commit

Permalink
Fix crash in v4 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklaayush committed Apr 26, 2021
1 parent 32a69e1 commit fa7811a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,11 @@ def parse_state_vaccination(reader):
# Entries from future/past dates will be ignored
continue
except ValueError:
# Bad date
# Only log bad date warning once
if not j:
logging.warning('[{}] Bad date: {}'.format(column_str(j + 2),
date_raw))
continue
count_str = row[date_raw]

try:
Expand Down

0 comments on commit fa7811a

Please sign in to comment.