Except more stuff
This commit is contained in:
parent
b88ce8a1f5
commit
8a99b2ddf7
1 changed files with 16 additions and 0 deletions
|
|
@ -73,27 +73,43 @@ def send_to_discord(custom_reader: Reader | None = None, feed=None, do_once=Fals
|
||||||
whitelist_title = reader.get_tag(feed, "whitelist_title")
|
whitelist_title = reader.get_tag(feed, "whitelist_title")
|
||||||
except TagNotFoundError:
|
except TagNotFoundError:
|
||||||
whitelist_title = ""
|
whitelist_title = ""
|
||||||
|
except ValueError:
|
||||||
|
whitelist_title = ""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
whitelist_summary = reader.get_tag(feed, "whitelist_summary")
|
whitelist_summary = reader.get_tag(feed, "whitelist_summary")
|
||||||
except TagNotFoundError:
|
except TagNotFoundError:
|
||||||
whitelist_summary = ""
|
whitelist_summary = ""
|
||||||
|
except ValueError:
|
||||||
|
whitelist_summary = ""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
whitelist_content = reader.get_tag(feed, "whitelist_content")
|
whitelist_content = reader.get_tag(feed, "whitelist_content")
|
||||||
except TagNotFoundError:
|
except TagNotFoundError:
|
||||||
whitelist_content = ""
|
whitelist_content = ""
|
||||||
|
except ValueError:
|
||||||
|
whitelist_content = ""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
blacklist_title = reader.get_tag(feed, "blacklist_title")
|
blacklist_title = reader.get_tag(feed, "blacklist_title")
|
||||||
except TagNotFoundError:
|
except TagNotFoundError:
|
||||||
blacklist_title = ""
|
blacklist_title = ""
|
||||||
|
except ValueError:
|
||||||
|
blacklist_title = ""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
blacklist_summary = reader.get_tag(feed, "blacklist_summary")
|
blacklist_summary = reader.get_tag(feed, "blacklist_summary")
|
||||||
except TagNotFoundError:
|
except TagNotFoundError:
|
||||||
blacklist_summary = ""
|
blacklist_summary = ""
|
||||||
|
except ValueError:
|
||||||
|
blacklist_summary = ""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
blacklist_content = reader.get_tag(feed, "blacklist_content")
|
blacklist_content = reader.get_tag(feed, "blacklist_content")
|
||||||
except TagNotFoundError:
|
except TagNotFoundError:
|
||||||
blacklist_content = ""
|
blacklist_content = ""
|
||||||
|
except ValueError:
|
||||||
|
blacklist_content = ""
|
||||||
|
|
||||||
# Check if the entry should be sent. If on the blacklist, mark as read and continue.
|
# Check if the entry should be sent. If on the blacklist, mark as read and continue.
|
||||||
if whitelist_title:
|
if whitelist_title:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue