mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
banned subreddits should generate a 404, not a really bad 500
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user