forked from cswimr/SeaCogs
fix(moderation): silently fail if an overflow error is encountered
This commit is contained in:
parent
8da6288263
commit
c8a32058f1
1 changed files with 4 additions and 1 deletions
|
@ -1719,7 +1719,10 @@ class Moderation(commands.Cog):
|
||||||
timestamp = round(case['timestamp'] / 1000)
|
timestamp = round(case['timestamp'] / 1000)
|
||||||
|
|
||||||
if case['duration']:
|
if case['duration']:
|
||||||
|
try:
|
||||||
duration = timedelta(seconds=round(float(case['duration']) / 1000))
|
duration = timedelta(seconds=round(float(case['duration']) / 1000))
|
||||||
|
except OverflowError:
|
||||||
|
continue
|
||||||
|
|
||||||
if case['resolved']:
|
if case['resolved']:
|
||||||
resolved = 1
|
resolved = 1
|
||||||
|
|
Loading…
Reference in a new issue