Merge pull request #1698 from vhaupert/master
Wsgiapp: Only raise exception if an error occurred.
This commit is contained in:
commit
1cc2195f45
|
@ -30,8 +30,8 @@ class WSGIApp:
|
||||||
)
|
)
|
||||||
if err:
|
if err:
|
||||||
ctx.log.error("Error in wsgi app. %s" % err)
|
ctx.log.error("Error in wsgi app. %s" % err)
|
||||||
flow.reply.kill()
|
|
||||||
raise exceptions.AddonHalt()
|
raise exceptions.AddonHalt()
|
||||||
|
flow.reply.kill()
|
||||||
|
|
||||||
def request(self, f):
|
def request(self, f):
|
||||||
if (f.request.pretty_host, f.request.port) == (self.host, self.port):
|
if (f.request.pretty_host, f.request.port) == (self.host, self.port):
|
||||||
|
|
Loading…
Reference in New Issue