Corregido error en capturer cuando cae un 404.
This commit is contained in:
parent
02dfa06b36
commit
448a5dd261
3 changed files with 122 additions and 120 deletions
|
|
@ -77,10 +77,14 @@ class CapturingTask:
|
|||
self._check_data()
|
||||
return
|
||||
|
||||
elif Refresher.dead_ad_checker(attack.get_text()):
|
||||
self._update_status('Dead ad')
|
||||
return
|
||||
else:
|
||||
try:
|
||||
if Refresher.dead_ad_checker(attack.get_text()):
|
||||
self._update_status('Dead ad')
|
||||
return
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
self._update_status('Fail {}'.format(self.request_failures))
|
||||
self.request_failures += 1
|
||||
sleep(CapturingTask.sleep_time_failed_request)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue