Explorar o código

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

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
aa4237168d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'))