From a91fa67ce5514242ecbefaad13d266d1f73c5e9f Mon Sep 17 00:00:00 2001 From: jaraco Date: Tue, 1 Sep 2009 00:41:49 +0000 Subject: [PATCH] Updated Exception to be an actual Exception --- svg/charts/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg/charts/plot.py b/svg/charts/plot.py index c97be1c..a0016db 100644 --- a/svg/charts/plot.py +++ b/svg/charts/plot.py @@ -142,7 +142,7 @@ class Plot(Graph): def validate_data(self, data): if len(data['data']) % 2 != 0: - raise "Expecting x,y pairs for data points for %s." % self.__class__.__name__ + raise ValueError("Expecting x,y pairs for data points for %s." % self.__class__.__name__) def process_data(self, data): pairs = list(get_pairs(data['data']))