don't let RSS shortening failure CRITICAL the whole bot

This commit is contained in:
jesopo 2019-11-14 11:54:10 +00:00
parent 160fab8f4f
commit 9abc668c0a

View file

@ -26,7 +26,10 @@ class Module(ModuleManager.BaseModule):
link = entry.get("link", None)
if shorten:
link = self.exports.get_one("shorturl")(server, link)
try:
link = self.exports.get_one("shorturl")(server, link)
except:
pass
link = " - %s" % link if link else ""
feed_title_str = "%s: " % feed_title if feed_title else ""