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
1 changed files with 1 additions and 1 deletions

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)