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")
|
||||
except TagNotFoundError:
|
||||
whitelist_title = ""
|
||||
except ValueError:
|
||||
whitelist_title = ""
|
||||
|
||||
try:
|
||||
whitelist_summary = reader.get_tag(feed, "whitelist_summary")
|
||||
except TagNotFoundError:
|
||||
whitelist_summary = ""
|
||||
except ValueError:
|
||||
whitelist_summary = ""
|
||||
|
||||
try:
|
||||
whitelist_content = reader.get_tag(feed, "whitelist_content")
|
||||
except TagNotFoundError:
|
||||
whitelist_content = ""
|
||||
except ValueError:
|
||||
whitelist_content = ""
|
||||
|
||||
try:
|
||||
blacklist_title = reader.get_tag(feed, "blacklist_title")
|
||||
except TagNotFoundError:
|
||||
blacklist_title = ""
|
||||
except ValueError:
|
||||
blacklist_title = ""
|
||||
|
||||
try:
|
||||
blacklist_summary = reader.get_tag(feed, "blacklist_summary")
|
||||
except TagNotFoundError:
|
||||
blacklist_summary = ""
|
||||
except ValueError:
|
||||
blacklist_summary = ""
|
||||
|
||||
try:
|
||||
blacklist_content = reader.get_tag(feed, "blacklist_content")
|
||||
except TagNotFoundError:
|
||||
blacklist_content = ""
|
||||
except ValueError:
|
||||
blacklist_content = ""
|
||||
|
||||
# Check if the entry should be sent. If on the blacklist, mark as read and continue.
|
||||
if whitelist_title:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue