Check that we have an AbstractURL in DDG results
This commit is contained in:
parent
b45b9b6219
commit
da52baebcc
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Module(ModuleManager.BaseModule):
|
|||
"q": phrase, "format": "json", "no_html": "1",
|
||||
"no_redirect": "1"}, json=True)
|
||||
|
||||
if page:
|
||||
if page and page.data["AbstractURL"]:
|
||||
event["stdout"].write(page.data["AbstractURL"])
|
||||
else:
|
||||
event["stderr"].write("No results found")
|
||||
|
|
Loading…
Reference in a new issue