Cris Ewing
2018-05-14 c838d21bb8a6bcee4883fa679059b344a6b2af45
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)