Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 975d783

Browse files
alex-anthropicnjsmith
authored andcommittedMay 11, 2024
explicit exception group
1 parent b9b278f commit 975d783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hypercorn/trio/tcp_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def run(self) -> None:
5151

5252
def log_handler(e: Exception) -> None:
5353
if self.config.log.error_logger is not None:
54-
self.config.log.error_logger.exception("Internal hypercorn error")
54+
self.config.log.error_logger.exception("Internal hypercorn error", exc_info=e)
5555

5656
try:
5757
with exceptiongroup.catch({Exception: log_handler}): # type: ignore

0 commit comments

Comments
 (0)
Please sign in to comment.