Merge pull request #1998 from onionshare/mig/fix-moat-again

Go back to expecting moat-bridges after captcha submission
This commit is contained in:
mig5 2025-02-19 07:29:18 +11:00 committed by GitHub
commit fa5e2380f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -289,7 +289,7 @@ class MoatThread(QtCore.QThread):
self.bridgedb_error.emit()
return
if moat_res["data"][0]["type"] != "moat-challenge":
self.common.log("MoatThread", "run", f"type != moat-challange")
self.common.log("MoatThread", "run", f"type != moat-challenge")
self.bridgedb_error.emit()
return
@ -351,8 +351,8 @@ class MoatThread(QtCore.QThread):
self.captcha_error.emit(errors)
return
if moat_res["data"][0]["type"] != "moat-challenge":
self.common.log("MoatThread", "run", f"type != moat-challenge")
if moat_res["data"][0]["type"] != "moat-bridges":
self.common.log("MoatThread", "run", f"type != moat-bridges")
self.bridgedb_error.emit()
return