瀏覽代碼

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

Romain Rigaux 9 年之前
父節點
當前提交
aa4237168d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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'))