Log URL when we fail to get a <title>

This commit is contained in:
jesopo 2019-05-07 14:44:29 +01:00
parent ed8761ed5c
commit 920c1d2cd8

View file

@ -30,7 +30,7 @@ class Module(ModuleManager.BaseModule):
except utils.http.HTTPWrongContentTypeException:
return None
except Exception as e:
self.log.error("failed to get URL title", [], exc_info=True)
self.log.error("failed to get URL title: %s", [url], exc_info=True)
return None
if page.data.title:
title = page.data.title.text.replace("\n", " ").replace(