1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-21 23:32:23 +00:00

FIX: fixes DDL error when search results contain an unexpected parsing result

This commit is contained in:
evilhero 2020-02-06 22:07:45 -05:00
parent 563439acdf
commit f49f563e30
No known key found for this signature in database
GPG key ID: 3E12C51E39D91142

View file

@ -124,7 +124,7 @@ class GC(object):
option_find = f.find("p", {"style": "text-align: center;"})
i = 0
while i <= 2:
while (i <= 2 and option_find is not None):
option_find = option_find.findNext(text=True)
if 'Year' in option_find:
year = option_find.findNext(text=True)