aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-25 20:49:27 +0100
committerGravatar jesopo2019-04-25 20:49:27 +0100
commitda52baebcce488976330ca7e779721d4239adb0e (patch)
tree077feb6ccc9a3e4553138040591a3faa4ef69b72 /modules
parentChange copypasted !google help text (diff)
signature
Check that we have an AbstractURL in DDG results
Diffstat (limited to 'modules')
-rw-r--r--modules/duckduckgo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/duckduckgo.py b/modules/duckduckgo.py
index 82d6b6d5..422449ca 100644
--- a/modules/duckduckgo.py
+++ b/modules/duckduckgo.py
@@ -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")