Fix exception handling

Change-Id: I13c21319031897efbeacc508821452e4663c033e
This commit is contained in:
Andrew Hutchings 2013-02-20 19:31:46 +00:00
parent 4b4f38576d
commit 3ad95903c8
3 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
python-libraclient (1.2.3-1) UNRELEASED; urgency=low
* Fixes broken exception handler
-- Andrew Hutchings <andrew@linuxjedi.co.uk> Wed, 20 Feb 2013 19:31:25 +0000
python-libraclient (1.2.2-1) UNRELEASED; urgency=low
* Allow newer versions of Novaclient again

View File

@ -12,4 +12,4 @@
# License for the specific language governing permissions and limitations
# under the License.
__version__ = "1.2.2"
__version__ = "1.2.3"

View File

@ -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: