Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 2dd033c

Browse files
By some misunderstanding I was raising an exception if the search engine returned a non-zero exit code, but this usually means that no results were found; now the 'no results' popup is properly displayed
1 parent 1297f0c commit 2dd033c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

searchengines/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def run(self, query, folders):
3333
pipe = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE)
3434
output, error = pipe.communicate()
3535
if pipe.returncode != 0:
36-
raise Exception('Search engine returned error level: %s' % pipe.returncode, output, error)
36+
return None
3737
return self._parse_output(self._sanitize_output(output).strip())
3838

3939
def _command_line(self, query, folders):

0 commit comments

Comments
 (0)