Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # error_catch.py
- varFakeFolder = 'FakeFolder'
- try:
- with open('C:/Test/' + varFakeFolder + '/fakefile.txt') as f:
- content = f.readlines()
- except IOError as ErrID:
- print ErrID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement