From 3952fc7f975b3bc526d5b84c4fbb18aa8c9d91e2 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 13 Nov 2015 21:57:09 -0800 Subject: [PATCH] made python 3 compatible --- contrib/inventory/rudder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/inventory/rudder.py b/contrib/inventory/rudder.py index b13f406d5c..5cf16c9761 100755 --- a/contrib/inventory/rudder.py +++ b/contrib/inventory/rudder.py @@ -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