kopia lustrzana https://github.com/micropython/micropython
13 wiersze
187 B
Python
13 wiersze
187 B
Python
![]() |
# Re-reraising last exception with raise w/o args
|
||
|
|
||
|
def f():
|
||
|
try:
|
||
|
raise ValueError("val", 3)
|
||
|
except:
|
||
|
raise
|
||
|
|
||
|
try:
|
||
|
f()
|
||
|
except ValueError as e:
|
||
|
print(repr(e))
|