From: Ben Pfaff Date: Thu, 25 Aug 2011 00:04:20 +0000 (-0700) Subject: ovs.json: Use Exception, which exists, instead of Error, which doesn't. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6732237bee6d3e9721bfa5cdf7ba131f559f767f;p=openvswitch ovs.json: Use Exception, which exists, instead of Error, which doesn't. Found by pychecker. --- diff --git a/python/ovs/json.py b/python/ovs/json.py index 5e7d8fab..96f3cffc 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")