Skip to content

Commit

Permalink
Fix unhelpful None error message when templates are not found
Browse files Browse the repository at this point in the history
  • Loading branch information
n0phx committed Oct 23, 2015
1 parent 30d2f1a commit d66de2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions librarian_core/contrib/system/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ def error_404(exc):

@view('errors/500')
def error_500(exc):
traceback = exc.traceback or exc.body
logging.error("Unhandled error '%s' at %s %s:\n\n%s",
exc.exception,
request.method.upper(),
request.path,
exc.traceback)
return dict(trace=exc.traceback)
traceback)
return dict(trace=traceback)


@view('errors/503')
Expand Down

0 comments on commit d66de2a

Please sign in to comment.