🚑 PMCaptcha Critical bug fix - stuck when using image mode

This commit is contained in:
Sam 2022-07-01 11:35:33 +08:00 committed by GitHub
parent 248042e122
commit 7fe5deabb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@
}, },
{ {
"name": "pmcaptcha", "name": "pmcaptcha",
"version": "2.03", "version": "2.04",
"section": "chat", "section": "chat",
"maintainer": "cloudreflection,01101sam", "maintainer": "cloudreflection,01101sam",
"size": "54.6 kb", "size": "54.6 kb",

View File

@ -1326,6 +1326,7 @@ class ImageChallenge(CaptchaChallenge):
self.save_state({"try_count": self.try_count}) self.save_state({"try_count": self.try_count})
await bot.block_user(self.user.id) await bot.block_user(self.user.id)
return return
break
except TimeoutError: except TimeoutError:
break # Fallback break # Fallback
except FloodWait as e: except FloodWait as e: