mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Use 'except ... as' syntax in contrib/ and test/ too
This commit is contained in:
@@ -98,7 +98,7 @@ class CloudStackInventory(object):
|
||||
options = parser.parse_args()
|
||||
try:
|
||||
self.cs = CloudStack(**read_config())
|
||||
except CloudStackException, e:
|
||||
except CloudStackException as e:
|
||||
print >> sys.stderr, "Error: Could not connect to CloudStack API"
|
||||
|
||||
project_id = ''
|
||||
|
||||
Reference in New Issue
Block a user