Skip to content

Commit

Permalink
Log database errors more concisely
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Strzelecki <florian.strzelecki@gmail.com>
  • Loading branch information
SnoopJ and Exirel authored Aug 14, 2022
1 parent e268345 commit ef0a3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/seen.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ def note(bot, trigger):
bot.db.set_nick_value(nick, 'seen_channel', trigger.sender)
bot.db.set_nick_value(nick, 'seen_message', trigger)
bot.db.set_nick_value(nick, 'seen_action', trigger.ctcp is not None)
except SQLAlchemyError:
logger.exception("Database write failed")
except SQLAlchemyError as error:
logger.error("Unable to save seen, database error: %s" % error)

0 comments on commit ef0a3d0

Please sign in to comment.