Skip to content

Commit

Permalink
fixed the handling of unhandled exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lfdversluis committed Jul 30, 2016
1 parent 7c0acb7 commit 5134adc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def render_PUT(self, request):
:statuscode 500: if a channel with the specified name already exists.
"""
self._delayed_put_render(request)
self._delayed_put_render(request).addErrback(request.processingFailed)
return NOT_DONE_YET

@inlineCallbacks
Expand Down
1 change: 0 additions & 1 deletion Tribler/Core/Modules/restapi/rest_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,3 @@ def processingFailed(self, failure):
self.setHeader(b'content-length', intToBytes(len(body)))
self.write(body)
self.finish()
return failure

0 comments on commit 5134adc

Please sign in to comment.