-
Notifications
You must be signed in to change notification settings - Fork 313
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
Changes in check of file path #95
base: develop
Are you sure you want to change the base?
Conversation
Previously, if you had entered a non-existent path load falling on a line 961 with an error "Not such file or directory: 'name_of_file.tmp'". Changed check the file path: added an Exception when entering a non-existent path, plus refactoring - got rid of one variable.
|
IOError instead of common Exception
|
I used this command to test:
This was the result under python 3:
And python 2:
Do you get different results? Am I missing something? |
That's right, these results because FileNotFoundError error is specific for python 3, and will be displayed for python2 as IOError. |
My point is that even without this change, pafy still raises and IOError/FileNotFoundError, as that is what python's |
|
Previously, if you had entered a non-existent path load falling on a line 961 with an error "Not such file or directory: 'name_of_file.tmp'".
Changed check the file path: added an Exception when entering a non-existent path, plus refactoring - got rid of one variable.