error is still called after try python code example
Example 1: only try python
try:
a=2
except:
pass
Example 2: python: raise error
class MyError(TypeError):
pass
raise MyError('An error happened')
try:
a=2
except:
pass
class MyError(TypeError):
pass
raise MyError('An error happened')