Error log failure to get title of a url (title.py)
This commit is contained in:
parent
8bf8097dd7
commit
381e0ae336
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
try:
|
||||
page = utils.http.request(url, soup=True)
|
||||
except:
|
||||
except Exception as e:
|
||||
self.log.error("failed to get URL title", exc_info=True)
|
||||
page = None
|
||||
pass
|
||||
|
||||
if not page:
|
||||
|
|
Loading…
Reference in a new issue