From 1f7469d1f9370f414a54b4d11f07c9ab08bca4c7 Mon Sep 17 00:00:00 2001
From: Cris Ewing <cris@crisewing.com>
Date: Mon, 14 May 2018 23:29:04 +0200
Subject: [PATCH] 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 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py
index 4702a6e..ac4f577 100644
--- a/pyramid/httpexceptions.py
+++ b/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)

--
Gitblit v1.9.3