Report site unavailable for AO3. Closes #908

This commit is contained in:
Jim Miller 2023-01-13 17:16:43 -06:00
parent db39aaf4ff
commit 346da2cdee

View file

@ -164,6 +164,10 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter):
logger.info("metaurl: "+metaurl)
data = self.get_request(url)
if '<h2 class="heading">Error 503 - Service unavailable</h2>' in data:
# note that it's not *actually* a 503 code...
raise exceptions.FailedToDownload('Site is currently unavailable.')
meta = self.get_request(metaurl)
if 'This work is part of an ongoing challenge and will be revealed soon!' in meta: