diff --git a/koboldcpp.py b/koboldcpp.py index 0c533d9f9..73c7a5c57 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -3725,8 +3725,8 @@ class KcppProxyHandler(http.server.BaseHTTPRequestHandler): conn = http.client.HTTPConnection('localhost', upstream_port, timeout=600) conn.request( self.command, self.path, body=body, headers=headers) resp = conn.getresponse() - except OSError as e: - 502_page = """ + except OSError: + html_502 = """
@@ -3734,77 +3734,12 @@ class KcppProxyHandler(http.server.BaseHTTPRequestHandler):