aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index ed16d9ed..032a7e5e 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -159,8 +159,8 @@ class ProxyHandler(tcp.BaseHandler):
app = self.server.apps.get(request)
if app:
err = app.serve(request, self.wfile)
- self.log(cc, "Error in wsgi app.", err.split("\n"))
if err:
+ self.log(cc, "Error in wsgi app.", err.split("\n"))
return
else:
request = request._send(self.mqueue)