Skip to content

Conversation

@jayvdb
Copy link
Contributor

@jayvdb jayvdb commented Oct 19, 2019

Replaces 'foo' in e with 'foo' in str(e).

Fixes #127

Replaces `'foo' in e` with `'foo' in str(e)`.

Fixes ralphbean#127
@coddingtonbear
Copy link
Collaborator

Actually, I think #130 solves this same problem, just in a slightly more pythonic way. Thanks for your patch, though!

@jayvdb
Copy link
Contributor Author

jayvdb commented Dec 8, 2020

fwiw, it was intentional to not do it that way. The other approach broke Python 2.
#130 (comment)
Can be fixed using something like https://stackoverflow.com/questions/21367320/searching-for-equivalent-of-filenotfounderror-in-python-2 .

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.

TypeError: argument of type 'FileNotFoundError' is not iterable

2 participants