Fix exception handling
Change-Id: I13c21319031897efbeacc508821452e4663c033e
This commit is contained in:
parent
4b4f38576d
commit
3ad95903c8
|
@ -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
|
||||
|
|
|
@ -12,4 +12,4 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
__version__ = "1.2.2"
|
||||
__version__ = "1.2.3"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue