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()
|
await capture.prepare_context()
|
||||||
entries = await capture.capture_page(url, referer=referer)
|
entries = await capture.capture_page(url, referer=referer)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.critical(f'Something went terribly wrong when capturing {url}.')
|
self.logger.critical(f'Something went terribly wrong when capturing {url} - {e}')
|
||||||
raise e
|
return False, f'Something went terribly wrong when capturing {url}.'
|
||||||
|
|
||||||
if not entries:
|
if not entries:
|
||||||
# broken
|
# broken
|
||||||
self.logger.critical(f'Something went terribly wrong when capturing {url}.')
|
self.logger.critical(f'Something went terribly wrong when capturing {url}.')
|
||||||
|
|
Loading…
Reference in New Issue