Tasmota/lib/libesp32/Berry/examples/exception.be

13 lines
210 B
Plaintext
Raw Normal View History

2021-04-12 18:53:35 +01:00
import debug
def test_func()
try
compile('def +() end')()
except .. as e, v
print('catch execption:', str(e) + ' >>>\n ' + str(v))
debug.traceback()
end
end
test_func()