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

Catch OSError as well as ValueError on race condition #1052

Merged
merged 2 commits into from
Jun 22, 2015
Merged

Catch OSError as well as ValueError on race condition #1052

merged 2 commits into from
Jun 22, 2015

Conversation

jaingaurav
Copy link
Contributor

The fix for issue #863 was incomplete as both OSError or ValueError could be
raised by os.fstat(). Thus we need to catch both types of exceptions

Additionally fixed some PEP8 formatting issues.

@tilgovi
Copy link
Collaborator

tilgovi commented Jun 22, 2015

LGTM

@benoitc
Copy link
Owner

benoitc commented Jun 22, 2015

bike-shedding spotted, but can you split it in 2 commit? One for the PEP8 fix and the other for the exception clause?

@benoitc
Copy link
Owner

benoitc commented Jun 22, 2015

otherwise the patch is OK for me.

The fix for issue #863 was incomplete as both OSError or ValueError could be
raised by os.fstat(). Thus we need to catch both types of exceptions
@jaingaurav
Copy link
Contributor Author

@benoitc done

berkerpeksag added a commit that referenced this pull request Jun 22, 2015
Catch OSError as well as ValueError on race condition
@berkerpeksag berkerpeksag merged commit d478968 into benoitc:master Jun 22, 2015
@berkerpeksag
Copy link
Collaborator

Thanks!

@jaingaurav
Copy link
Contributor Author

Thanks for merging this in so promptly.

@jaingaurav jaingaurav deleted the oserror branch June 22, 2015 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants