try: raise Exception("Some error") except 1: print("oops")
Standard input is empty
Standard output is empty
Traceback (most recent call last):
File "prog.py", line 2, in <module>
raise Exception("Some error")
Exception: Some error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "prog.py", line 3, in <module>
except 1:
TypeError: catching classes that do not inherit from BaseException is not allowed