Skip to content

Commit

Permalink
Should really test locally
Browse files Browse the repository at this point in the history
Account for empty values on checking for bad values
  • Loading branch information
iquasere committed Jan 3, 2024
1 parent 91ddeb6 commit 2c62e4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keggcharter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def read_input():


def bad_value(cell_value, pattern):
if type(cell_value) == float:
return False
pattern = re.compile(pattern)
values = cell_value.split(',')
for val in values:
Expand Down

0 comments on commit 2c62e4c

Please sign in to comment.