diff options
| author | 2019-01-21 14:39:20 +0000 | |
|---|---|---|
| committer | 2019-01-21 14:39:20 +0000 | |
| commit | 381e0ae3362eb49715ed2716e4691be317ec044a (patch) | |
| tree | 893823fc7e3a575f249099a3edffdc612da634e2 /modules | |
| parent | `bus_stop` isnt a `Response` object (tfl.py) (diff) | |
| signature | ||
Error log failure to get title of a url (title.py)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/title.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/title.py b/modules/title.py index ef4caf59..6cec5c91 100644 --- a/modules/title.py +++ b/modules/title.py @@ -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: |
