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 running out of inodes #745

Merged
merged 1 commit into from
Apr 9, 2014
Merged

Handle running out of inodes #745

merged 1 commit into from
Apr 9, 2014

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Apr 5, 2014

The "except Exception" is too general for the makedirs
call. Instead we only catch the specific case where a directory
already exists (because a thread has already come along and created it).
Any other exception propogates.

Fixes #739.

The "except Exception" is too general for the makedirs
call.  Instead we only catch the specific case where a directory
already exists (because a thread has already come along and created it).
Any other exception propogates.

Fixes aws#739.
except Exception:
pass
except OSError as e:
if not e.errno == errno.EEXIST:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for not and == here instead of !=?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason, habit I guess.

@danielgtaylor
Copy link
Contributor

LGTM, 🚢-it!

@jamesls jamesls merged commit ad05114 into aws:develop Apr 9, 2014
@jamesls jamesls deleted the mkdir-fix branch June 23, 2014 18:23
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.

S3 transfer does not properly handle running out of disk space
2 participants