Bert JW Regeer
2017-02-07 afd24fa9404db191df8c5cb8a454c20919a67a7e
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
@@ -238,7 +238,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,