Skip to content

Commit 66204c6

Browse files
fix parsing vendor frames when using pyenv
1 parent 64541e7 commit 66204c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exceptionite/StackTrace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, index, frame_summary, variables={}, offset=5, shorten=False):
2020

2121
# check if frame is a vendor frame (from an external python package or masonite package
2222
# in development)
23-
if rel_path.startswith(sys.base_prefix):
23+
if rel_path.startswith(sys.base_prefix) or rel_path.startswith(sys.exec_prefix):
2424
self.is_vendor = True
2525
self.relative_file = "~/" + rel_path.lstrip(sys.base_prefix)
2626
elif rel_path.find("src/masonite/") != -1:

0 commit comments

Comments
 (0)