Ajustado error de tipos en dead_ad_checker.

This commit is contained in:
pablomartincalvo 2018-10-19 18:05:35 +02:00
parent c3c16e7015
commit 5d261328b8
3 changed files with 96 additions and 117 deletions

View file

@ -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