Skip to content

Commit 45939a7

Browse files
author
Meatplay
committed
Fix exception handling
1 parent a8cc895 commit 45939a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flathunter/abstract_crawler.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ def resolve_amazon(self, driver):
237237
sleep(2)
238238
try:
239239
driver.find_element(By.TAG_NAME, "awswaf-captcha")
240-
raise CaptchaUnsolvableError()
241240
except:
242241
logger.info("Captcha solved")
242+
else:
243+
raise CaptchaUnsolvableError()
243244
except Exception as ex:
244245
driver.refresh()
245246
raise CaptchaUnsolvableError()

0 commit comments

Comments
 (0)