Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62dd3db

Browse files
ErrorHandler simplified
1 parent ff6e9c1 commit 62dd3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bevyframe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def error_handler(self, request, status_code, exception) -> Response:
215215
style={'margin-bottom': '10px', 'padding-top': '10px', 'font-family': 'monospace'},
216216
innertext=(
217217
'Path ' +
218-
e.split('"')[1].removeprefix('.').removesuffix('/__init__.py') +
218+
e.split('"')[1].removeprefix('.').removesuffix('/__init__.py').removeprefix(os.getcwd()) +
219219
e.removeprefix(e.split('"')[0] + '"' + e.split('"')[1] + '"')
220220
)
221221
)

0 commit comments

Comments
 (0)