From 5a99ad864161750bd05ddf1df368701d64c0a396 Mon Sep 17 00:00:00 2001 From: Cris Ewing Date: Mon, 14 May 2018 17:09:10 -0400 Subject: 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 --- pyramid/httpexceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py index 4702a6e8e..ac4f57738 100644 --- a/pyramid/httpexceptions.py +++ b/pyramid/httpexceptions.py @@ -1156,6 +1156,7 @@ for name, value in list(globals().items()): if ( isinstance(value, class_types) and issubclass(value, HTTPException) and + value not in [HTTPClientError, HTTPServerError] and not name.startswith('_') ): code = getattr(value, 'code', None) -- cgit v1.2.3