aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/utilities/epoch.py
diff options
context:
space:
mode:
authorGravatar Shakya Majumdar <[email protected]>2022-01-19 16:55:09 +0530
committerGravatar GitHub <[email protected]>2022-01-19 16:55:09 +0530
commitc7a644bb6457f1d08fc908c0111d258b7c730e79 (patch)
tree24e44b47c987eacb347ce59f0ee3686ef1f93c85 /bot/exts/utilities/epoch.py
parentrewrite, use the rtex api instead of mpl (diff)
parentMake error messages more consistent in the AoC daystar view (#973) (diff)
Merge branch 'main' into feat/latex
Diffstat (limited to 'bot/exts/utilities/epoch.py')
-rw-r--r--bot/exts/utilities/epoch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utilities/epoch.py b/bot/exts/utilities/epoch.py
index b9feed18..03758af0 100644
--- a/bot/exts/utilities/epoch.py
+++ b/bot/exts/utilities/epoch.py
@@ -35,7 +35,7 @@ class DateString(commands.Converter):
"""
try:
return arrow.utcnow().dehumanize(argument)
- except ValueError:
+ except (ValueError, OverflowError):
try:
dt, ignored_tokens = parser.parse(argument, fuzzy_with_tokens=True)
except parser.ParserError: