TurboGears / backlash

Standalone WebOb port of the Werkzeug Debugger with Python3 support born as a WebError replacement for TurboGears2
MIT License
13 stars 11 forks source link

Refactor out response page generation into its own method. #14

Closed chrismacklin closed 5 years ago

chrismacklin commented 5 years ago

Tiny change to make it a bit cleaner to override the response page generated by the error middleware. Thanks for a nice library!

amol- commented 5 years ago

This doesn't seem correct, the _generate_response yields the data, but nothing seems to be consuming it as a generator anymore.

chrismacklin commented 5 years ago

Heh, indeed. I added the missing return statement.

chrismacklin commented 5 years ago

Thanks for the merge!