Skip to content

member_points is occasionally None in build_trades_dict #86

@tomreece

Description

@tomreece

This crash occurs every so often. Not sure what would be causing this to be None.

Traceback (most recent call last):
  File "pucauto.py", line 397, in <module>
    find_trades()
  File "pucauto.py", line 366, in find_trades
    trades = build_trades_dict(soup)
  File "pucauto.py", line 268, in build_trades_dict
    member_points = int(row.find("td", class_="points").text)
AttributeError: 'NoneType' object has no attribute 'text'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions