diff options
author | 2022-01-16 14:22:47 +0000 | |
---|---|---|
committer | 2022-01-16 14:22:47 +0000 | |
commit | 54bbf6b1d6e78a4d17f3544c11416a074b1d22a4 (patch) | |
tree | b8e3706e98775009545513e9b01d5884be3731bf | |
parent | chore(deps): bump pillow from 8.4.0 to 9.0.0 (diff) | |
parent | Merge branch 'main' into main (diff) |
Merge pull request #1005 from Sn4u/main
fix OverflowError in epoch command
-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: |