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
|
@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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue