fix: auto-restart when captcha was encountered

This commit is contained in:
sebthom
2025-05-12 17:20:51 +02:00
parent 65738926ae
commit ee4146f57c
2 changed files with 3 additions and 0 deletions

View File

@@ -1196,6 +1196,8 @@ def main(args:list[str]) -> None:
bot = KleinanzeigenBot()
atexit.register(bot.close_browser_session)
nodriver.loop().run_until_complete(bot.run(args))
except CaptchaEncountered as ex:
raise ex
except Exception:
error_handlers.on_exception(*sys.exc_info())