From 6387fa042c4bbd31ccb04c3820e9264f3281b98f Mon Sep 17 00:00:00 2001 From: Sn4u <35849006+Sn4u@users.noreply.github.com> Date: Sat, 8 Jan 2022 22:11:24 +0000 Subject: handle OverflowError in relative times converter --- bot/exts/utilities/epoch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/utilities/epoch.py') 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: -- cgit v1.2.3