Skip to content

TypeError: can't subtract offset-naive and offset-aware datetimes #2003

@sentry-io

Description

@sentry-io

Sentry Issue: BOT-1RD

TypeError: can't subtract offset-naive and offset-aware datetimes
  File "arrow/arrow.py", line 1576, in __rsub__
    return other - self._datetime
  File "bot/utils/time.py", line 71, in discord_timestamp
    timestamp = (timestamp - arrow.get(0)).total_seconds()
  File "bot/exts/moderation/modpings.py", line 236, in schedule_modpings
    f"{discord_timestamp(start, TimestampFormats.TIME)} to "
  File "discord/ext/commands/core.py", line 167, in wrapped
    ret = await coro(*args, **kwargs)

Error executing command invoked by [redacted]: !modpings schedule 6am 6pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: 2 - normalNormal Priorityt: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions