Python - Custom Exceptions
Identify the error in this code snippet:
class MyError(Exception):
pass
try:
raise MyError
except MyError:
print("Caught error")