code-loader 1.0.17__py3-none-any.whl → 1.0.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- code_loader/utils.py +8 -3
- {code_loader-1.0.17.dist-info → code_loader-1.0.20.dist-info}/METADATA +2 -2
- {code_loader-1.0.17.dist-info → code_loader-1.0.20.dist-info}/RECORD +5 -5
- {code_loader-1.0.17.dist-info → code_loader-1.0.20.dist-info}/LICENSE +0 -0
- {code_loader-1.0.17.dist-info → code_loader-1.0.20.dist-info}/WHEEL +0 -0
code_loader/utils.py
CHANGED
@@ -25,10 +25,15 @@ def get_root_traceback(exc_tb: TracebackType) -> TracebackType:
|
|
25
25
|
|
26
26
|
|
27
27
|
def get_root_exception_line_number() -> int:
|
28
|
-
|
28
|
+
root_exception = sys.exc_info()[1]
|
29
|
+
assert root_exception is not None
|
30
|
+
if root_exception.__context__ is not None:
|
31
|
+
root_exception = root_exception.__context__
|
32
|
+
traceback = root_exception.__traceback__
|
33
|
+
|
29
34
|
root_exception_line_number = -1
|
30
|
-
if
|
31
|
-
root_traceback = get_root_traceback(
|
35
|
+
if traceback is not None:
|
36
|
+
root_traceback = get_root_traceback(traceback)
|
32
37
|
root_exception_line_number = root_traceback.tb_lineno
|
33
38
|
return root_exception_line_number
|
34
39
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: code-loader
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.20
|
4
4
|
Summary:
|
5
5
|
Home-page: https://github.com/tensorleap/code-loader
|
6
6
|
License: MIT
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
16
16
|
Requires-Dist: numpy (>=1.22.3,<2.0.0)
|
17
17
|
Requires-Dist: psutil (>=5.9.5,<6.0.0)
|
18
|
-
Requires-Dist: typeguard (>=
|
18
|
+
Requires-Dist: typeguard (>=4.1.5,<5.0.0)
|
19
19
|
Project-URL: Repository, https://github.com/tensorleap/code-loader
|
20
20
|
Description-Content-Type: text/markdown
|
21
21
|
|
@@ -9,10 +9,10 @@ code_loader/contract/visualizer_classes.py,sha256=1FjVO744J_EMuJfHWXGdvSz6vl3Vu7
|
|
9
9
|
code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
|
10
10
|
code_loader/inner_leap_binder/leapbinder.py,sha256=KKVyStkCb7K1wB4AP4c2fmJuSFiC0MxWy0VwJ7Id_J8,12510
|
11
11
|
code_loader/leaploader.py,sha256=eyCxajK7hdkFQHRhmXUjppT1BJ4dRcTRmGXxeHiaZKQ,15322
|
12
|
-
code_loader/utils.py,sha256=
|
12
|
+
code_loader/utils.py,sha256=lluWgGpG7sYB-o9Wk9vZlm4uQqb7qbPZBa_qnSe0BkU,1933
|
13
13
|
code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
14
|
code_loader/visualizers/default_visualizers.py,sha256=HqWx2qfTrroGl2n8Fpmr_4X-rk7tE2oGapjO3gzz4WY,2226
|
15
|
-
code_loader-1.0.
|
16
|
-
code_loader-1.0.
|
17
|
-
code_loader-1.0.
|
18
|
-
code_loader-1.0.
|
15
|
+
code_loader-1.0.20.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
16
|
+
code_loader-1.0.20.dist-info/METADATA,sha256=uQjDDryZ10h5R6PYaDcZAPPhUY7riMZXeJVyjY2HgI4,810
|
17
|
+
code_loader-1.0.20.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
18
|
+
code_loader-1.0.20.dist-info/RECORD,,
|
File without changes
|
File without changes
|