fix this error

File "/home/nlevitt/workspace/warcprox/warcprox/warcproxy.py", line 256, in _proxy_request
    return recorded_url
UnboundLocalError: local variable 'recorded_url' referenced before assignment
This commit is contained in:
Noah Levitt 2016-03-04 21:02:47 +00:00
parent 918fdd3e9b
commit 422672408a

View File

@ -202,6 +202,7 @@ class WarcProxyHandler(warcprox.mitmproxy.MitmProxyHandler):
req += self.rfile.read(int(self.headers['Content-Length']))
prox_rec_res = None
recorded_url = None
try:
self.logger.debug('sending to remote server req=%s', repr(req))