Skip to content

Commit

Permalink
Report 'Some results found instead of search error
Browse files Browse the repository at this point in the history
Fixes #YO9JR2
  • Loading branch information
ojab committed Mar 18, 2016
1 parent 81ebcfb commit d29e093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bnw/handlers/command_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def cmd_search(request, query='', page='0'):
result = yield service.callRemote('search', query, int(page))
except Exception:
log.msg('SEARCH ERROR:\n\n' + traceback.format_exc())
defer.returnValue(dict(ok=False, desc='Search internal error.'))
defer.returnValue(dict(ok=True, desc='Some results found.'))
else:
if result is None:
defer.returnValue(dict(ok=False, desc='Bad request.'))
Expand Down

0 comments on commit d29e093

Please sign in to comment.