Eliminate traceback library

This commit is contained in:
Thomas Farstrike
2026-01-25 00:30:01 +01:00
parent 09f7d6b398
commit a2ffd35997
3 changed files with 1 additions and 6 deletions
-2
View File
@@ -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.