From 7f1c7f532eb948bc903024238a16e59e328bd3f7 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Wed, 28 Mar 2018 18:04:54 -0700 Subject: [PATCH] stop swallowing exception on _proxy_request() --- setup.py | 2 +- warcprox/mitmproxy.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f47da6f..629ed64 100755 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ except: setuptools.setup( name='warcprox', - version='2.4b2.dev158', + version='2.4b2.dev159', description='WARC writing MITM HTTP/S proxy', url='https://github.com/internetarchive/warcprox', author='Noah Levitt', diff --git a/warcprox/mitmproxy.py b/warcprox/mitmproxy.py index 2776a97..8778822 100644 --- a/warcprox/mitmproxy.py +++ b/warcprox/mitmproxy.py @@ -462,6 +462,7 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler): self._conn_pool._put_conn(self._remote_server_conn) except: self._remote_server_conn.sock.close() + raise finally: if prox_rec_res: prox_rec_res.close()