Cris Ewing
2018-05-14 1f7469d1f9370f414a54b4d11f07c9ab08bca4c7
Update the building of status_dict, now that both the base server and client errors and their specific implementations share an error code.  Ensures we only get the specific implementations in status_dict
1 files modified
1 ■■■■ changed files
pyramid/httpexceptions.py 1 ●●●● patch | view | raw | blame | history
pyramid/httpexceptions.py
@@ -1156,6 +1156,7 @@
    if (
            isinstance(value, class_types) and
            issubclass(value, HTTPException) and
            value not in [HTTPClientError, HTTPServerError] and
            not name.startswith('_')
    ):
        code = getattr(value, 'code', None)