Ajustado error de tipos en dead_ad_checker.
This commit is contained in:
parent
c3c16e7015
commit
5d261328b8
3 changed files with 96 additions and 117 deletions
|
|
@ -23,9 +23,12 @@ class Refresher:
|
|||
:param html: HTML del anuncio en string.
|
||||
:return: True si esta dado de baja, False si no.
|
||||
"""
|
||||
if ':-|' in html or 'El anunciante lo dio de baja' in html:
|
||||
return True
|
||||
else:
|
||||
try:
|
||||
if ':-|' in html or 'El anunciante lo dio de baja' in html:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
except TypeError:
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue