Skip to content

TypeError: can't compare offset-naive and offset-aware datetimes #875

@sentry

Description

@sentry

Sentry Issue: SIR-LANCEBOT-6E

TypeError: can't compare offset-naive and offset-aware datetimes
  File "dateutil/relativedelta.py", line 154, in __init__
    if dt1 < dt2:
  File "bot/utils/time.py", line 80, in time_since
    delta = abs(relativedelta(now, past_datetime))
  File "bot/exts/utilities/emoji.py", line 110, in info_command
    **Created:** {time_since(emoji.created_at, precision="hours")}
  File "discord/ext/commands/core.py", line 167, in wrapped
    ret = await coro(*args, **kwargs)

Unhandled command error: can't compare offset-naive and offset-aware datetimes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions