From a2ffd35997633da7d8e3498f2b9f8ab9e3e437b6 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sun, 25 Jan 2026 00:30:01 +0100 Subject: [PATCH] Eliminate traceback library --- internal_filesystem/lib/README.md | 2 -- .../lib/mpos/content/app_manager.py | 5 +---- internal_filesystem/lib/traceback.mpy | Bin 485 -> 0 bytes 3 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 internal_filesystem/lib/traceback.mpy diff --git a/internal_filesystem/lib/README.md b/internal_filesystem/lib/README.md index b78ec741..c1de9157 100644 --- a/internal_filesystem/lib/README.md +++ b/internal_filesystem/lib/README.md @@ -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 diff --git a/internal_filesystem/lib/mpos/content/app_manager.py b/internal_filesystem/lib/mpos/content/app_manager.py index 0202cdd7..08c1bdff 100644 --- a/internal_filesystem/lib/mpos/content/app_manager.py +++ b/internal_filesystem/lib/mpos/content/app_manager.py @@ -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 diff --git a/internal_filesystem/lib/traceback.mpy b/internal_filesystem/lib/traceback.mpy deleted file mode 100644 index ff0e4c68b7dd290fc32b6c96e58cae6333f3fbb4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 485 zcmeZeW003(lqe}mOioQoOwQITsAS-0E3PbN;4;uN)-zxbO3N?GO)QBoNn+4~GE*y( zQwvHm^Yh~K^KvQ~*cH&l8RQCzGV@B};R+deic3=ROG_Ap;1Uc1sTIlbnR#jX3|u*x zxtS#l9BG+3sSI4n8Ht&B3?c|K8JHUb#p2`3Qj3Z~cE&TXlq4}U**3X0v2vxBR2HN% zFqJScr82OpA$$SVU6Q1ssgRdnqL7(ekdvC5npcvV!o|=MA|S(B5d1*EuGMMN7ogv2(QFbc4J0*OiNY+)2&7Z(-g;cMU#V%@OOgekd6 z;Z!T57>9(UFb^+ZgMg~)mcV;1u0l-0oJWM1L^w8XF=L7hOl}gm-N?wp1yUj=#395a x!fnPNz_USsccTE`rbg2?MzESo4UAm;JbVpO0sb20TNuq4lK~GMfVcnv