banned subreddits should generate a 404, not a really bad 500

This commit is contained in:
KeyserSosa
2008-10-22 16:40:43 -07:00
parent 5d32a27917
commit 37584f1e54

View File

@@ -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():