diff options
| author | 2019-11-27 22:10:45 +0000 | |
|---|---|---|
| committer | 2019-11-27 22:10:45 +0000 | |
| commit | 389370708d6ea633aebc7cdae87dcf5ce8dfb900 (patch) | |
| tree | d09308fa6bba78eb42d4a4ae5f021a6d3698c431 /modules/title.py | |
| parent | identified_account -> identified (diff) | |
| signature | ||
don't overwrite `page` - we need it for `page.code`
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/title.py b/modules/title.py index 309b9b00..e45e015a 100644 --- a/modules/title.py +++ b/modules/title.py @@ -57,10 +57,10 @@ class Module(ModuleManager.BaseModule): if not page.content_type in utils.http.SOUP_CONTENT_TYPES: return -1, None - page = page.soup() + soup = page.soup() - if page.title: - title = utils.parse.line_normalise(page.title.text) + if soup.title: + title = utils.parse.line_normalise(soup.title.text) if not title: return -3, None |
