From 6a7021797f575c938f91eb62a412c84013ef59cf Mon Sep 17 00:00:00 2001 From: Luke Campagnola <> Date: Tue, 6 Mar 2012 01:20:42 -0500 Subject: [PATCH] exception message fix --- Point.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Point.py b/Point.py index c16d4df6..68980745 100644 --- a/Point.py +++ b/Point.py @@ -46,7 +46,7 @@ class Point(QtCore.QPointF): elif i == 1: return self.y() else: - raise IndexError("Point has no index %d" % i) + raise IndexError("Point has no index %s" % str(i)) def __setitem__(self, i, x): if i == 0: @@ -54,7 +54,7 @@ class Point(QtCore.QPointF): elif i == 1: return self.setY(x) else: - raise IndexError("Point has no index %d" % i) + raise IndexError("Point has no index %s" % str(i)) def __radd__(self, a): return self._math_('__radd__', a)