Log exceptions we would have passed.
authorCMDR furrycat <elite@furrycat.net>
Fri, 21 Oct 2016 15:07:47 +0000 (16:07 +0100)
committerCMDR furrycat <elite@furrycat.net>
Fri, 21 Oct 2016 15:19:34 +0000 (16:19 +0100)
bot.py

diff --git a/bot.py b/bot.py
index bd016b6..3d20cbd 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -201,7 +201,7 @@ def set_avatar(url):
     return True
   except:
     fd.close()
-    raise
+    logging.exception("set_avatar")
     return False
 
 @asyncio.coroutine
@@ -858,7 +858,7 @@ def do_rss(feed):
         digests.append(digest)
         log.debug('Posted RSS with digest {}'.format(digest))
     except:
-      pass
+      logging.exception("do_rss")
 
 @asyncio.coroutine
 def do_feeds():
@@ -1608,7 +1608,7 @@ def announce(announcement):
         log.info('Playing announcement {} {} in {}'.format(announcement['id'], filename, channel))
         yield from play_sound(client.get_channel(str(announcement['voice_id'])), filename)
   except:
-    pass
+    logging.exception("announce")
 
 @asyncio.coroutine
 def do_announcements():