Permalink
Browse files

Change the code so it works with all the supported versions.

git-svn-id: https://svn.apache.org/repos/asf/libcloud/trunk@1301756 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent cf90e1e commit 720504572c4a9d0a33efeef8cd802ccc74aa7d69 @Kami Kami committed Mar 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/compute/test_openstack.py
@@ -583,7 +583,8 @@ def test_auth_token_without_base_url_raises_exception(self):
try:
self.driver_type(*self.driver_args, **kwargs)
self.fail('Expected failure setting auth token without base url')
- except LibcloudError as e:
+ except LibcloudError:
+ e = sys.exc_info()[1]
pass
else:
self.fail('Expected failure setting auth token without base url')

0 comments on commit 7205045

Please sign in to comment.