Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- fd = fopen('/tmp/demo', 'w')
- except IsADirectoryError:
- print('This is a directory. Expecting a file')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement