Skip to content

Commit a2ffd35

Browse files
Eliminate traceback library
1 parent 09f7d6b commit a2ffd35

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

internal_filesystem/lib/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
This /lib folder contains:
2-
- https://github.com/echo-lalia/qmi8658-micropython/blob/main/qmi8685.py but given the correct name "qmi8658.py"
3-
- traceback.mpy from https://github.com/micropython/micropython-lib
42
- mip.install('github:jonnor/micropython-zipfile')
53
- mip.install("shutil") for shutil.rmtree('/apps/com.example.files') # for rmtree()
64
- mip.install("aiohttp") # easy websockets

internal_filesystem/lib/mpos/content/app_manager.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import traceback
32

43
try:
54
import zipfile
@@ -289,9 +288,7 @@ def execute_script(script_source, is_file, classname, cwd=None):
289288
return False
290289
except Exception as e:
291290
print(f"Thread {thread_id}: exception during execution:")
292-
# Print stack trace with exception type, value, and traceback
293-
tb = getattr(e, '__traceback__', None)
294-
traceback.print_exception(type(e), e, tb)
291+
sys.print_exception(e)
295292
return False
296293
finally:
297294
# Always restore sys.path, even if we return early or raise an exception
-485 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)