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

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

jdykstra
Copy link
Contributor

@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.
progressbar/widgets.py Show resolved Hide resolved
@github-actions github-actions bot added the Stale label Jul 3, 2024
@github-actions github-actions bot closed this Jul 10, 2024
@wolph wolph reopened this Jul 10, 2024
@github-actions github-actions bot removed the Stale label Jul 11, 2024
@github-actions github-actions bot added the Stale label Aug 10, 2024
@github-actions github-actions bot closed this Aug 18, 2024
@jdykstra
Copy link
Contributor Author

I don't see an alternative fix in develop. Bug report rejected?

@wolph wolph reopened this Aug 18, 2024
@wolph
Copy link
Owner

wolph commented Aug 18, 2024

I still haven't configured the stupid stalebot correctly it seems... in any case, the fix hasn't been deployed yet, the last update was a question from my end:

image

But I'll merge it and create a new release regardless, thank you for the help!

@jdykstra
Copy link
Contributor Author

jdykstra commented Aug 18, 2024 via email

@wolph
Copy link
Owner

wolph commented Aug 18, 2024

No worries... I regularly don't get mail from Github's notifications either. Not sure if it's a spam filter or something else, but it's been bothering me for years.

@jdykstra
Copy link
Contributor Author

See above response to June 1 static checking bot.

@github-actions github-actions bot removed the Stale label Aug 19, 2024
@wolph wolph merged commit 35aa020 into wolph:develop Aug 23, 2024
6 of 19 checks passed
@wolph
Copy link
Owner

wolph commented Aug 23, 2024

Thank you so much for the fix! I've created a new release but I'm still (slowly...) working on updating the CI builds again so all automated testing works 100% again. But that takes a lot of time and effort :)

@ptrcnull
Copy link

I still haven't configured the stupid stalebot correctly it seems... in any case, the fix hasn't been deployed yet, the last update was a question from my end:

image

But I'll merge it and create a new release regardless, thank you for the help!

FYI, you never submitted the review with the pictured comment ( it even says so in the screenshot, with the label "Pending" on it )

@wolph
Copy link
Owner

wolph commented Aug 23, 2024

FYI, you never submitted the review with the pictured comment ( it even says so in the screenshot, with the label "Pending" on it )

It seems you're right... in my mind I had only commented and not started a full review. I've been rather sleep deprived lately, I'm probably going to automate the entire release process to prevent these things from happening in the future since this was just stupidity on my part.

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
3 participants