From c45fd909c37eabe6e3391304f539003aa3bbff2d Mon Sep 17 00:00:00 2001 From: lin-hua-cheng Date: Tue, 8 Sep 2015 16:42:04 -0700 Subject: [PATCH] Adding back exception mapping for ConnectionError The mapping for ConnectionError to ConnectionRefused have been remove in a recent cleanup to move all exception to keystoneclient.exceptions related commit: 26534dadb1d0be00b87b632a038839ab1c18cfe4 Adding the mapping back for backward compatability. Change-Id: I6f4627b9cd68615b509d17910fe2c1605e89fc26 Closes-Bug: #1492600 --- keystoneclient/exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/keystoneclient/exceptions.py b/keystoneclient/exceptions.py index d88bb73a0..875692990 100644 --- a/keystoneclient/exceptions.py +++ b/keystoneclient/exceptions.py @@ -463,6 +463,7 @@ def from_response(response, method, url): # NOTE(akurilin): This alias should be left here to support backwards # compatibility until we are sure that usage of these exceptions in # projects is correct. +ConnectionError = ConnectionRefused HTTPNotImplemented = HttpNotImplemented Timeout = RequestTimeout HTTPError = HttpError