Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle OSError exception from format_time() in ETA.__call__() #298

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jdykstra
Copy link

@jdykstra jdykstra commented Jun 1, 2024

In Windows CPython, format_time() can throw "OSError: [Errno 22] Invalid argument" when passed a very large date. Ignore this in ETA.call() with contextlib.suppress(). Fixes #297.

In Windows CPython, format_time() can throw "OSError: [Errno 22] Invalid argument" when passed a very large date.
Ignore this in ETA.__call__() with contextlib.suppress().  Fixes wolph#297.
@@ -560,7 +560,7 @@
fmt = self.format_NA
else:
fmt = self.format_zero

:

Check failure

Code scanning / CodeQL

Syntax error Error

Syntax Error (in Python 3).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OSError exception from AbsoluteETA on Windows CPython
1 participant