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

13 lines
210 B
Python

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()