Merge pull request #306 from examknow/patch-5

make no entries message more specific
This commit is contained in:
jess 2021-05-31 16:29:57 +01:00 committed by GitHub
commit fc651d80e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,7 +207,7 @@ class Module(ModuleManager.BaseModule):
title, entries = self._get_entries(url) title, entries = self._get_entries(url)
if not entries: if not entries:
raise utils.EventError("Failed to get RSS entries") raise utils.EventError("%s has no entries" % url)
shorten = event["target"].get_setting("rss-shorten", False) shorten = event["target"].get_setting("rss-shorten", False)
out = self._format_entry(event["server"], event["target"], title, entries[0], out = self._format_entry(event["server"], event["target"], title, entries[0],