Skip to content

Commit 5570215

Browse files
committed
Just a little log message
1 parent 4df7f95 commit 5570215

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SeamCarverLib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def energy(self, col, row):
2929
"""return energy of pixel in (col, row)"""
3030
if self._isValid(col, row):
3131
return self._energy[self._toLinear(col, row)]
32+
else:
33+
print "invalid coordinates to energy: %s %s" % (col, row)
3234

3335
def findSeam(self, direction):
3436
"""return vertical seam in image"""

0 commit comments

Comments
 (0)