From 6a660206c865740c56e12b65c8b55ecefe192f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 15 May 2019 11:28:36 +0200 Subject: [PATCH] also mention type on exception catch --- delojza.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/delojza.py b/delojza.py index e4dd1a9..6eb0aff 100755 --- a/delojza.py +++ b/delojza.py @@ -285,9 +285,9 @@ class DelojzaBot: self.last_downloaded = filenames, hashtags, tumblr_ids return filenames except: - _, exc_value, __ = sys.exc_info() + exc_type, exc_value, __ = sys.exc_info() if "Timed out" not in str(exc_value): - message.reply_text("Something is FUCKED: %s" % exc_value) + message.reply_text("Something is FUCKED: [{}] {}".format(exc_type, exc_value)) def tg_handle_url(self, _, update): self.handle_urls(update.message, self.get_hashtags(update.message))