diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-08-24 17:04:20 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-08-25 11:07:23 -0700 |
| commit | 6732237bee6d3e9721bfa5cdf7ba131f559f767f (patch) | |
| tree | 85181d5f5d1d6bca02178c8690cb2f5dbe11fa7b /python | |
| parent | 7550c333d3e2dfbe5361ceff0881d82b5cf3dc04 (diff) | |
| download | openvswitch-6732237bee6d3e9721bfa5cdf7ba131f559f767f.tar.gz | |
ovs.json: Use Exception, which exists, instead of Error, which doesn't.
Found by pychecker.
Diffstat (limited to 'python')
| -rw-r--r-- | python/ovs/json.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ovs/json.py b/python/ovs/json.py index 5e7d8fab9..96f3cffc8 100644 --- a/python/ovs/json.py +++ b/python/ovs/json.py @@ -66,7 +66,7 @@ def to_stream(obj, stream, pretty=False, sort_keys=True): to_stream(value, stream, pretty, sort_keys) stream.write(u"]") else: - raise Error("can't serialize %s as JSON" % obj) + raise Exception("can't serialize %s as JSON" % obj) def to_file(obj, name, pretty=False, sort_keys=True): stream = open(name, "w") |
