Skip to content

Commit

Permalink
Merge pull request #1102 from pekrau/master
Browse files Browse the repository at this point in the history
Add 'reason' kwarg to send_error.
  • Loading branch information
bdarnell committed Jul 16, 2014
2 parents 6ef4608 + 590ce3f commit 6c48936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def send_error(self, status_code=500, **kwargs):
return
self.clear()

reason = None
reason = kwargs.get('reason')
if 'exc_info' in kwargs:
exception = kwargs['exc_info'][1]
if isinstance(exception, HTTPError) and exception.reason:
Expand Down

0 comments on commit 6c48936

Please sign in to comment.