Fixes a bug with the !quote command of rat-board where it was possible to subtract a timezone-aware datetime object from a timezone-nieve datetime object
Basically that's not a thing that is permissible and raises an unhandled exception during command execution.
Props on Firebeam for reporting this.
Sidenote: why do we have both a timeutils.friendly_timedelta and a pretty_timedelta method?
Seems a little redundant.
Fixes a bug with the
!quote
command ofrat-board
where it was possible to subtract a timezone-awaredatetime
object from a timezone-nievedatetime
objectBasically that's not a thing that is permissible and raises an unhandled exception during command execution. Props on Firebeam for reporting this.
Sidenote: why do we have both a
timeutils.friendly_timedelta
and apretty_timedelta
method? Seems a little redundant.Fixes MECHA-246