mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +00:00
made python 3 compatible
This commit is contained in:
@@ -152,7 +152,7 @@ class RudderInventory(object):
|
||||
|
||||
try:
|
||||
self.inventory = json.loads(json_cache)
|
||||
except ValueError, e:
|
||||
except ValueError as e:
|
||||
self.fail_with_error('Could not parse JSON response from local cache', 'parsing local cache')
|
||||
|
||||
def write_cache(self):
|
||||
@@ -270,7 +270,7 @@ class RudderInventory(object):
|
||||
|
||||
try:
|
||||
data = json.loads(content)
|
||||
except ValueError, e:
|
||||
except ValueError as e:
|
||||
self.fail_with_error('Could not parse JSON response from Rudder API', 'reading API response')
|
||||
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user