base_otw_adapter: Detect & report 'This site is in beta' page

This commit is contained in:
Jim Miller 2025-02-24 11:05:38 -06:00
parent d854733ffa
commit ab7198bb8f

View file

@ -147,6 +147,9 @@ class BaseOTWAdapter(BaseSiteAdapter):
# note that it's not *actually* a 503 code...
raise exceptions.FailedToDownload('Site is currently unavailable.')
if 'This site is in beta. Things may break or crash without notice.' in data:
raise exceptions.FailedToDownload('Page failed to load, reported "This site is in beta".')
meta = self.get_request(metaurl)
if 'This work is part of an ongoing challenge and will be revealed soon!' in meta: