Skip to content

Commit

Permalink
Merge pull request #2473 from sopel-irc/trigger-error-no-dup-timestamp
Browse files Browse the repository at this point in the history
bot: don't add duplicate timestamp into error log line
  • Loading branch information
dgw authored Jun 20, 2023
2 parents 5ec9482 + ff64350 commit 7bcb942
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sopel/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from __future__ import annotations

from ast import literal_eval
from datetime import datetime, timezone
import inspect
import itertools
import logging
Expand Down Expand Up @@ -1052,8 +1051,8 @@ def error(
message = 'Unexpected {}{}'.format(type(exception).__name__, detail)

if trigger:
message = '{} from {} at {}. Message was: {}'.format(
message, trigger.nick, str(datetime.now(timezone.utc)), trigger.group(0)
message = '{} from {}. Message was: {}'.format(
message, trigger.nick, trigger.group(0)
)

LOGGER.exception(message)
Expand Down

0 comments on commit 7bcb942

Please sign in to comment.