add response for no results
This commit is contained in:
@@ -772,6 +772,8 @@ def search_the_web(argv, **args):
|
|||||||
return {
|
return {
|
||||||
'msg': 'No direct result found, use {}'.format(redirect)
|
'msg': 'No direct result found, use {}'.format(redirect)
|
||||||
}
|
}
|
||||||
|
else:
|
||||||
|
return {'msg': 'Sorry, no results.'}
|
||||||
|
|
||||||
|
|
||||||
@pluginfunction('raise', 'only for debugging', ptypes_COMMAND)
|
@pluginfunction('raise', 'only for debugging', ptypes_COMMAND)
|
||||||
|
|||||||
Reference in New Issue
Block a user