pyramid/httpexceptions.py | ●●●●● patch | view | raw | blame | history |
pyramid/httpexceptions.py
@@ -1156,7 +1156,7 @@ if ( isinstance(value, class_types) and issubclass(value, HTTPException) and value not in [HTTPClientError, HTTPServerError] and value not in {HTTPClientError, HTTPServerError} and not name.startswith('_') ): code = getattr(value, 'code', None)