From 87bca89efa6842bec6bec0f05229e41a6da20395 Mon Sep 17 00:00:00 2001 From: b3yond Date: Fri, 9 Aug 2019 15:21:49 +0200 Subject: [PATCH] added backtrace to general error message --- active_bots/mastodonbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/active_bots/mastodonbot.py b/active_bots/mastodonbot.py index 7859ff7..f577e20 100755 --- a/active_bots/mastodonbot.py +++ b/active_bots/mastodonbot.py @@ -21,7 +21,7 @@ class MastodonBot(Bot): try: m = mastodon.Mastodon(*user.get_masto_credentials()) except TypeError: - # logger.error("No Mastodon Credentials in database.", exc_info=True) + # No Mastodon Credentials in database. return mentions try: notifications = m.notifications() @@ -38,7 +38,7 @@ class MastodonBot(Bot): logger.error("Unknown Mastodon API Error: 504. Server: " + m.instance()['urls']['streaming_api']) return mentions except mastodon.MastodonServerError: - logger.error("Unknown Mastodon Server Error. Server: " + m.instance()['urls']['streaming_api']) + logger.error("Unknown Mastodon Server Error. Server: " + m.instance()['urls']['streaming_api'], exc_info=True) return mentions for status in notifications: if (status['type'] == 'mention' and