From ab7198bb8fb2e439e534fbce19997d25b70f4582 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 24 Feb 2025 11:05:38 -0600 Subject: [PATCH] base_otw_adapter: Detect & report 'This site is in beta' page --- fanficfare/adapters/base_otw_adapter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fanficfare/adapters/base_otw_adapter.py b/fanficfare/adapters/base_otw_adapter.py index 04cac06e..a7a3bb4c 100644 --- a/fanficfare/adapters/base_otw_adapter.py +++ b/fanficfare/adapters/base_otw_adapter.py @@ -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: