diff options
Diffstat (limited to 'openstack/common/jsonutils.py')
| -rw-r--r-- | openstack/common/jsonutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/jsonutils.py b/openstack/common/jsonutils.py index f96e727..efc8324 100644 --- a/openstack/common/jsonutils.py +++ b/openstack/common/jsonutils.py @@ -120,7 +120,7 @@ def to_primitive(value, convert_instances=False, level=0): level=level + 1) else: return value - except TypeError, e: + except TypeError: # Class objects are tricky since they may define something like # __iter__ defined but it isn't callable as list(). return unicode(value) |
