Python - Custom Exceptions
Find the error in this code snippet:
try:
open('file.txt')
except IOError:
print('File error')
except FileNotFoundError:
print('File not found')