mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-24 01:03:01 +01:00
AO3: Site changed 'don't have permission' string
This commit is contained in:
parent
63fd8cd660
commit
193bb3ed61
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ class BaseOTWAdapter(BaseSiteAdapter):
|
|||
if 'This work is part of an ongoing challenge and will be revealed soon!' in meta:
|
||||
raise exceptions.FailedToDownload('Site says: "This work is part of an ongoing challenge and will be revealed soon!"')
|
||||
|
||||
if '<div class="flash error">Sorry, you don't have permission to access the page you were trying to reach.</div>' in data:
|
||||
if re.search(r'<div class="flash error">Sorry, you don(\'|')t have permission to access the page you were trying to reach.</div>', data):
|
||||
# note that it's not *actually* a 503 code...
|
||||
raise exceptions.FailedToDownload('Site says: "Sorry, you don\'t have permission to access the page you were trying to reach."')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue