# Reraising last exception with raise w/o args
def f():
try:
raise ValueError("val", 3)
except:
raise
f()
except ValueError as e:
print(repr(e))
# Can reraise only in except block
except RuntimeError:
print("RuntimeError")