mirror of https://github.com/CIRCL/lookyloo
fix: better handling if capture fails.
parent
fa54cb2caa
commit
680eb1b309
|
@ -143,8 +143,9 @@ class AsyncCapture(AbstractManager):
|
|||
await capture.prepare_context()
|
||||
entries = await capture.capture_page(url, referer=referer)
|
||||
except Exception as e:
|
||||
self.logger.critical(f'Something went terribly wrong when capturing {url}.')
|
||||
raise e
|
||||
self.logger.critical(f'Something went terribly wrong when capturing {url} - {e}')
|
||||
return False, f'Something went terribly wrong when capturing {url}.'
|
||||
|
||||
if not entries:
|
||||
# broken
|
||||
self.logger.critical(f'Something went terribly wrong when capturing {url}.')
|
||||
|
|
Loading…
Reference in New Issue