Ver código fonte

HUE-3294 [search] Avoid 500 error in typo in string substitution

Romain Rigaux 9 anos atrás
pai
commit
aa42371
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      apps/search/src/search/views.py

+ 1 - 1
apps/search/src/search/views.py

@@ -180,7 +180,7 @@ def search(request):
       try:
         response['error'] = json.loads(e.message)['error']['msg']
       except:
-        LOG.exception('failed to parse json response: %s') % force_unicode(e)
+        LOG.exception('failed to parse json response: %s' % force_unicode(e))
         response['error'] = force_unicode(e)
     except Exception, e:
       raise PopupException(e, title=_('Error while accessing Solr'))