Commit 6a702179 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

exception message fix

parent e263baa0
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment