display hash when the captcha hasn't been resolved

This commit is contained in:
Romain Bignon 2010-12-08 17:54:33 +01:00
commit 9242a2e3e2

View file

@ -100,11 +100,13 @@ class Tile:
@property @property
def letter(self): def letter(self):
checksum = self.checksum()
try: try:
return self.hash[self.checksum()] return self.hash[checksum]
except KeyError: except KeyError:
print 'Unable te resolve:' print 'Unable te resolve:'
self.display() self.display()
print 'hash: %s' % checksum
raise CaptchaError() raise CaptchaError()
class Captcha: class Captcha: