mirror of https://github.com/CIRCL/AIL-framework
fix: [crawler] fix capture None domain name
parent
a7fd838329
commit
b6eb6c9016
|
@ -230,7 +230,12 @@ class Crawler(AbstractModule):
|
||||||
domain = task.get_domain()
|
domain = task.get_domain()
|
||||||
print(domain)
|
print(domain)
|
||||||
if not domain:
|
if not domain:
|
||||||
raise Exception(f'Error: domain {domain}')
|
if self.debug:
|
||||||
|
raise Exception(f'Error: domain {domain} - task {task.uuid} - capture {capture.uuid}')
|
||||||
|
else:
|
||||||
|
self.logger.critical(f'Error: domain {domain} - task {task.uuid} - capture {capture.uuid}')
|
||||||
|
print(f'Error: domain {domain}')
|
||||||
|
return None
|
||||||
|
|
||||||
self.domain = Domain(domain)
|
self.domain = Domain(domain)
|
||||||
self.original_domain = Domain(domain)
|
self.original_domain = Domain(domain)
|
||||||
|
|
Loading…
Reference in New Issue