Skip to content
Snippets Groups Projects
Unverified Commit 5bc7030c authored by Bhavin Gandhi's avatar Bhavin Gandhi
Browse files

Handle FileNotFoundError with proper error message

Using `IOError` for compatibility, from Python 3.3 `IOError` is alias of `OSError`
https://stackoverflow.com/a/28633573/6202405

Checking the errno of 'No such file or directory' so that only that exception will be catched.
https://docs.python.org/2/library/errno.html
https://stackoverflow.com/a/39414133



Signed-off-by: default avatarBhavin Gandhi <bhavin7392@gmail.com>
parent 738db8d0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment