Bert JW Regeer
2017-02-07 c3c01c4d5c9af32a968a30750decd8d484db9ca4
stringify self.detail in case it is not a string
1 files modified
2 ■■■ changed files
pyramid/httpexceptions.py 2 ●●● patch | view | raw | blame | history
pyramid/httpexceptions.py
@@ -235,7 +235,7 @@
            del self.content_length
    def __str__(self):
        return self.detail or self.explanation
        return str(self.detail) if self.detail else self.explanation
    def _json_formatter(self, status, body, title, environ):
        return {'message': body,