We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 836df16 commit 011039eCopy full SHA for 011039e
1 file changed
sopy/se_data/models/chat.py
@@ -110,6 +110,6 @@ def html_load(cls, element, room_id, ts_date=None, update=True):
110
o.rendered = True
111
112
stars_elem = element.find('span', class_='stars')
113
- o.stars = int(stars_elem.find('span', class_='times').string) if stars_elem is not None else 0
+ o.stars = int(stars_elem.find('span', class_='times').string or 0) if stars_elem is not None else 0
114
115
return o
0 commit comments