Catch broken pipe error
This commit is contained in:
parent
2f9830c16a
commit
b0e599dc68
|
@ -61,7 +61,10 @@ class HTTPHandler(MetricsHandler): # type: ignore[misc]
|
|||
"""
|
||||
self.send_response(int(status) or 500)
|
||||
self.end_headers()
|
||||
try:
|
||||
self.wfile.write(bytes(str(message).encode()))
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
|
||||
def _metrics(self) -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue