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))