summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCris Ewing <cris@crisewing.com>2018-05-14 17:09:10 -0400
committerCris Ewing <cris@crisewing.com>2018-05-14 17:09:10 -0400
commit5a99ad864161750bd05ddf1df368701d64c0a396 (patch)
tree40d7d8659dd6e7f69fdcfe900b4141dcb7f10095
parent391275df4eabfb2be0c8cac5de70e3a5fad5acfd (diff)
downloadpyramid-5a99ad864161750bd05ddf1df368701d64c0a396.tar.gz
pyramid-5a99ad864161750bd05ddf1df368701d64c0a396.tar.bz2
pyramid-5a99ad864161750bd05ddf1df368701d64c0a396.zip
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
-rw-r--r--pyramid/httpexceptions.py1
1 files changed, 1 insertions, 0 deletions
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)