try:
f = open("file.txt")
except:
print("except text:")
raise
'''
run:
except text:
Traceback (most recent call last):
File ".../test.py", line 2, in <module>
f = open("file.txt")
FileNotFoundError: [Errno 2] No such file or directory: 'file.txt'
'''