Skip to content

Commit

Permalink
made python 3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Nov 14, 2015
1 parent 958fb29 commit 3952fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/inventory/rudder.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def load_cache(self):

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):
Expand Down Expand Up @@ -270,7 +270,7 @@ def api_call(self, path):

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
Expand Down

0 comments on commit 3952fc7

Please sign in to comment.