diff options
author | 2022-01-08 22:11:24 +0000 | |
---|---|---|
committer | 2022-01-08 22:11:24 +0000 | |
commit | 6387fa042c4bbd31ccb04c3820e9264f3281b98f (patch) | |
tree | 2e8b334e7ceec446455d30d4e99c128f0ff91b98 | |
parent | Merge Epoch Command (PR #983) (diff) |
handle OverflowError in relative times converter
-rw-r--r-- | bot/exts/utilities/epoch.py | 2 |
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: |