mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 05:24:43 +00:00
FIX: fixes DDL error when search results contain an unexpected parsing result
This commit is contained in:
parent
563439acdf
commit
f49f563e30
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class GC(object):
|
||||||
|
|
||||||
option_find = f.find("p", {"style": "text-align: center;"})
|
option_find = f.find("p", {"style": "text-align: center;"})
|
||||||
i = 0
|
i = 0
|
||||||
while i <= 2:
|
while (i <= 2 and option_find is not None):
|
||||||
option_find = option_find.findNext(text=True)
|
option_find = option_find.findNext(text=True)
|
||||||
if 'Year' in option_find:
|
if 'Year' in option_find:
|
||||||
year = option_find.findNext(text=True)
|
year = option_find.findNext(text=True)
|
||||||
|
|
Loading…
Reference in a new issue