From 37584f1e544551634d9094126ceb2d3d409dd42b Mon Sep 17 00:00:00 2001 From: KeyserSosa Date: Wed, 22 Oct 2008 16:40:43 -0700 Subject: [PATCH] banned subreddits should generate a 404, not a really bad 500 --- r2/r2/controllers/reddit_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/reddit_base.py b/r2/r2/controllers/reddit_base.py index 2ded7b698..2a783a182 100644 --- a/r2/r2/controllers/reddit_base.py +++ b/r2/r2/controllers/reddit_base.py @@ -252,7 +252,7 @@ def set_subreddit(): c.default_sr = True # check that the site is available: - if c.site._spam and not c.user_is_admin: + if c.site._spam and not c.user_is_admin and not c.error_page: abort(404, "not found") def set_content_type():