Skip to content

Commit

Permalink
Merge pull request #280 from euanwm/fix/aus_null_value_issue
Browse files Browse the repository at this point in the history
fixes null value error
  • Loading branch information
euanwm authored Dec 25, 2023
2 parents 88cfa1e + bcae6f5 commit 1ee0fa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python_tools/database_handler/web_scrapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def strip_table_body(table):
data = tbl_dat.find_all('i')
if len(data) == 1:
strip_it = str(data[0].text).replace(" ", "-")
# fixes issue #278
if len(strip_it) == 0:
strip_it = "0"
cells.append(strip_it)
else:
if len((data := tbl_dat.text.strip())) > 0:
Expand Down

0 comments on commit 1ee0fa8

Please sign in to comment.