Skip to content

Commit 81c7357

Browse files
committed
Use format() instead of traceback.format_list()
1 parent 822dcac commit 81c7357

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

playwright/_impl/_connection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,7 @@ def dispatch(self, msg: ParsedMessagePayload) -> None:
387387
parsed_error = parse_error(
388388
error["error"], format_call_log(msg.get("log")) # type: ignore
389389
)
390-
parsed_error._stack = "".join(
391-
traceback.format_list(callback.stack_trace)
392-
)
390+
parsed_error._stack = "".join(callback.stack_trace.format())
393391
callback.future.set_exception(parsed_error)
394392
else:
395393
result = self._replace_guids_with_channels(msg.get("result"))

0 commit comments

Comments
 (0)