Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
continue # pragma: no cover
norm_src = log.HTTPSession.normalize_url(window, src)
if norm_src:
img['src'] = norm_src
content = soup.prettify(formatter = None)
options = {
'quiet' : ''
}
if sys.platform in ('linux', ):
options['xvfb'] = ''
try: # pragma: no cover
screenshot = imgkit.from_string(content, False, options = options)
log.ThugLogging.log_screenshot(url, screenshot)
except Exception as e:
log.warning("[SCREENSHOT] Error: %s", str(e))