You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Eliminate traceback library
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
This /lib folder contains:
|
||||
- https://github.com/echo-lalia/qmi8658-micropython/blob/main/qmi8685.py but given the correct name "qmi8658.py"
|
||||
- traceback.mpy from https://github.com/micropython/micropython-lib
|
||||
- mip.install('github:jonnor/micropython-zipfile')
|
||||
- mip.install("shutil") for shutil.rmtree('/apps/com.example.files') # for rmtree()
|
||||
- mip.install("aiohttp") # easy websockets
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import traceback
|
||||
|
||||
try:
|
||||
import zipfile
|
||||
@@ -289,9 +288,7 @@ class AppManager:
|
||||
return False
|
||||
except Exception as e:
|
||||
print(f"Thread {thread_id}: exception during execution:")
|
||||
# Print stack trace with exception type, value, and traceback
|
||||
tb = getattr(e, '__traceback__', None)
|
||||
traceback.print_exception(type(e), e, tb)
|
||||
sys.print_exception(e)
|
||||
return False
|
||||
finally:
|
||||
# Always restore sys.path, even if we return early or raise an exception
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user