We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0e4be commit 16ea858Copy full SHA for 16ea858
tibiapy/character.py
@@ -420,9 +420,14 @@ def _parse_character_information(self, rows):
420
# This is a special case cause we need to see the link
421
if field == "house":
422
house_text = value
423
- paid_until = house_regexp.search(house_text).group(1)
+ m = house_regexp.search(house_text)
424
+ if not m:
425
+ continue
426
+ paid_until = m.group(1)
427
paid_until_date = parse_tibia_date(paid_until)
428
house_link = cols_raw[1].find('a')
429
+ if not house_link:
430
431
url = urllib.parse.urlparse(house_link["href"])
432
query = urllib.parse.parse_qs(url.query)
433
houses.append({"id": int(query["houseid"][0]), "name": house_link.text.strip(),
0 commit comments