Skip to content

Commit

Permalink
fixes null value error
Browse files Browse the repository at this point in the history
  • Loading branch information
euanwm committed Dec 25, 2023
1 parent 88cfa1e commit bcae6f5
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 bcae6f5

Please sign in to comment.