mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-07 09:23:28 +01:00
Change http status code for use_browser_cache_only misses to not invoke StoryDoesNotExist
This commit is contained in:
parent
8506ed9b5b
commit
d3f073a630
1 changed files with 3 additions and 1 deletions
|
|
@ -277,7 +277,9 @@ class BrowserCacheDecorator(FetcherDecorator):
|
||||||
if fetcher.getConfig("use_browser_cache_only"):
|
if fetcher.getConfig("use_browser_cache_only"):
|
||||||
raise exceptions.HTTPErrorFFF(
|
raise exceptions.HTTPErrorFFF(
|
||||||
url,
|
url,
|
||||||
404,
|
428, # 404 & 410 trip StoryDoesNotExist
|
||||||
|
# 428 ('Precondition Required') gets the
|
||||||
|
# error_msg through to the user.
|
||||||
"Page not found in Browser Cache",# error_msg
|
"Page not found in Browser Cache",# error_msg
|
||||||
None # data
|
None # data
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue