diff options
| author | 2019-10-31 10:27:00 +0000 | |
|---|---|---|
| committer | 2019-10-31 10:27:00 +0000 | |
| commit | 10b5b19cffc3a5b46e1a65174392acbad8add8ea (patch) | |
| tree | 1d60dfc282a232aeb03ea757244e712e2bdfac24 /modules/title.py | |
| parent | don't assume we're in a channel when we're not (title.py) (diff) | |
| signature | ||
don't try to parse empty <title>s
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/title.py b/modules/title.py index 66d5d44a..6956e7d9 100644 --- a/modules/title.py +++ b/modules/title.py @@ -60,6 +60,8 @@ class Module(ModuleManager.BaseModule): if page.data.title: title = page.data.title.text.replace("\n", " ").replace( "\r", "").replace(" ", " ").strip() + if not title: + return -3, None if channel: if (channel.get_setting("auto-title-difference", True) and |
