Skip to content

Commit 413a028

Browse files
committed
Fix ruff issue - unused vars
1 parent 7a58b92 commit 413a028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configurable_http_proxy/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def initialize(self, proxy: "PythonProxy" = None, **kwargs):
3636
self.proxy = proxy
3737

3838
def write_error(self, status_code, **kwargs):
39-
err_type, err, err_tb = (None, None, None)
39+
_err_type, err, _err_tb = (None, None, None)
4040
if "exc_info" in kwargs:
41-
err_type, err, err_tb = kwargs["exc_info"]
41+
_err_type, err, _err_tb = kwargs["exc_info"]
4242
if not isinstance(err, HTTPError): # Only log exceptions
4343
self.proxy.log.error(f"Error in handler for {self.request.method} {self.request.path}: {err}")
4444
return super().write_error(status_code, **kwargs)

0 commit comments

Comments
 (0)