From 3ad95903c80c5162011b70ecb8e0dd73ceb09424 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Wed, 20 Feb 2013 19:31:46 +0000 Subject: [PATCH] Fix exception handling Change-Id: I13c21319031897efbeacc508821452e4663c033e --- debian/changelog | 6 ++++++ libraclient/__init__.py | 2 +- libraclient/libraapi.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6bb8d53..f90c312 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-libraclient (1.2.3-1) UNRELEASED; urgency=low + + * Fixes broken exception handler + + -- Andrew Hutchings Wed, 20 Feb 2013 19:31:25 +0000 + python-libraclient (1.2.2-1) UNRELEASED; urgency=low * Allow newer versions of Novaclient again diff --git a/libraclient/__init__.py b/libraclient/__init__.py index e40f81e..b225dbe 100644 --- a/libraclient/__init__.py +++ b/libraclient/__init__.py @@ -12,4 +12,4 @@ # License for the specific language governing permissions and limitations # under the License. -__version__ = "1.2.2" +__version__ = "1.2.3" diff --git a/libraclient/libraapi.py b/libraclient/libraapi.py index c02bc12..32a1e33 100644 --- a/libraclient/libraapi.py +++ b/libraclient/libraapi.py @@ -36,7 +36,7 @@ def from_response(response, body, url, method=None): response.status_code, novaclient.exceptions.ClientException ) if response.headers: - request_id = response.get('x-compute-request-id') + request_id = response.headers.get('x-compute-request-id') else: request_id = None if body: