fix more errors
[imago.git] / src / intrsc.py
index 6f78f8d..a740212 100644 (file)
@@ -163,7 +163,7 @@ def stone_color_raw(image, (x, y)):
                 pass
     norm = float(len(points))
     if norm == 0:
                 pass
     norm = float(len(points))
     if norm == 0:
-        return 0, 0, 0 #TODO trow exception here
+        return 0, 0, (0, 0, 0) #TODO trow exception here
     color = (sum(p[0] for p in points) / norm,
              sum(p[1] for p in points) / norm,
              sum(p[2] for p in points) / norm)
     color = (sum(p[0] for p in points) / norm,
              sum(p[1] for p in points) / norm,
              sum(p[2] for p in points) / norm)