From d3f073a6303ff0e931f493297532c20d2a51433d Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 3 Feb 2021 16:11:26 -0600 Subject: [PATCH] Change http status code for use_browser_cache_only misses to not invoke StoryDoesNotExist --- fanficfare/fetcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fanficfare/fetcher.py b/fanficfare/fetcher.py index 24b42e31..f78e0094 100644 --- a/fanficfare/fetcher.py +++ b/fanficfare/fetcher.py @@ -277,7 +277,9 @@ class BrowserCacheDecorator(FetcherDecorator): if fetcher.getConfig("use_browser_cache_only"): raise exceptions.HTTPErrorFFF( 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 None # data )