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 in prune_dirs helper #3209

Merged
merged 2 commits into from
Apr 7, 2019
Merged

Catch OSError in prune_dirs helper #3209

merged 2 commits into from
Apr 7, 2019

Conversation

arcresu
Copy link
Member

@arcresu arcresu commented Apr 7, 2019

Since fnmatch_all can raise OSErrors, and we were already silently giving up in prune_dirs on some of these exception, just do more of the same. Closes #1996.

It seems that this solution was agreed on in the issue but nobody went ahead and implemented it. I haven't made any attempt to test this but it looks sensible.

/cc @jackwilsdon

Since `fnmatch_all` can raise `OSError`s, and we were already silently
giving up in `prune_dirs` on some of these exception, just do more of
the same.
@arcresu arcresu added the bug bugs that are confirmed and actionable label Apr 7, 2019
Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

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

Nice! This looks right to me.

@arcresu arcresu merged commit bb16136 into beetbox:master Apr 7, 2019
@arcresu arcresu deleted the prune_dirs-except branch April 7, 2019 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs that are confirmed and actionable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants