Skip to content

Conversation

@aethanol
Copy link

@aethanol aethanol commented Jul 5, 2022

gevent.monkey.patch_all() patches stderr to be gevent._fileobjectcommon._ClosedIO object, which raises its own FileObjectClosed(IOError).
This PR robustly handles OSError which IOError / FileObjectClosed error inherits from.
Fixes #1336

@Byron Byron added this to the v3.1.28 - Bugfixes milestone Jul 6, 2022
@Byron
Copy link
Member

Byron commented Jul 6, 2022

Thanks a lot for the fix, much appreciated!

@Byron Byron merged commit f23994e into gitpython-developers:main Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

If gevent is used, it causes any error to be a gevent.FileObjectClosed(IOError)

2 participants