mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 07:19:25 -05:00
This commit is contained in:
@@ -802,9 +802,9 @@ class RedditController(MinimalController):
|
||||
from r2.lib.contrib.pysolr import SolrError
|
||||
from r2.lib.indextank import IndextankException
|
||||
if isinstance(exception, SolrError):
|
||||
errmsg = "SolrError: %r" % e
|
||||
errmsg = "SolrError: %r" % exception
|
||||
|
||||
if (str(e) == 'None'):
|
||||
if (str(exception) == 'None'):
|
||||
# Production error logs only get non-None errors
|
||||
g.log.debug(errmsg)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user