This commit is contained in:
Andre d
2011-05-20 15:30:40 -04:00
committed by Andre D
parent 5a33ecca90
commit cbb217cbc5

View File

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