TurboGears/tg2

In quickstart template /error/document crashes if accessed directly

amol- opened this issue · 0 comments

amol- commented

See https://github.com/TurboGears/tg2devtools/blob/development/devtools/gearbox/quickstart/template/%2Bpackage%2B/controllers/error.py_tmpl#L36 looking for resp.status_int, but resp will be None when /error/document is accessed directly thus leading to a crash.