mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
No longer clogging up logs with 500 errors
This commit is contained in:
committed by
Neil Williams
parent
d63fba2d59
commit
dcc97b6749
@@ -619,7 +619,7 @@ class ApiController(RedditController, OAuth2ResourceController):
|
||||
and (not container.is_moderator(c.user)
|
||||
or c.user._spam)):
|
||||
if c.user._spam:
|
||||
abort(500, 'internal server error')
|
||||
return
|
||||
else:
|
||||
abort(403, 'forbidden')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user