display hash when the captcha hasn't been resolved
This commit is contained in:
parent
8f39c0618c
commit
9242a2e3e2
1 changed files with 3 additions and 1 deletions
|
|
@ -100,11 +100,13 @@ class Tile:
|
|||
|
||||
@property
|
||||
def letter(self):
|
||||
checksum = self.checksum()
|
||||
try:
|
||||
return self.hash[self.checksum()]
|
||||
return self.hash[checksum]
|
||||
except KeyError:
|
||||
print 'Unable te resolve:'
|
||||
self.display()
|
||||
print 'hash: %s' % checksum
|
||||
raise CaptchaError()
|
||||
|
||||
class Captcha:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue