From 3fe0678c5c18c0e0e28d3bcd699772d0898e4a94 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Thu, 5 Jan 2012 04:05:26 -0500 Subject: [PATCH] fix error handling in util.math.add_tuples --- p2pool/util/math.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/p2pool/util/math.py b/p2pool/util/math.py index 00567e8..4940cc8 100644 --- a/p2pool/util/math.py +++ b/p2pool/util/math.py @@ -134,7 +134,7 @@ class Object(object): def add_tuples(res, *tuples): for t in tuples: if len(t) != len(res): - print 'tuples must all be the same length' + raise ValueError('tuples must all be the same length') res = tuple(a + b for a, b in zip(res, t)) return res -- 1.7.1