mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 07:47:17 +00:00
fix: [crawler] fix capture None domain name
This commit is contained in:
parent
a7fd838329
commit
b6eb6c9016
1 changed files with 6 additions and 1 deletions
|
@ -230,7 +230,12 @@ class Crawler(AbstractModule):
|
|||
domain = task.get_domain()
|
||||
print(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.original_domain = Domain(domain)
|
||||
|
|
Loading…
Reference in a new issue