From 6732237bee6d3e9721bfa5cdf7ba131f559f767f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 24 Aug 2011 17:04:20 -0700 Subject: [PATCH] ovs.json: Use Exception, which exists, instead of Error, which doesn't. Found by pychecker. --- python/ovs/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.30.2