[ddg] Don't include empty definition in global results
This commit is contained in:
parent
c06fb69c8b
commit
3a1ce6c9e8
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class DDGResult:
|
|||
@property
|
||||
def definition(self):
|
||||
if "Definition" not in self.ddgres or not self.ddgres["Definition"]:
|
||||
return "Sorry, no definition found for %s." % self.terms
|
||||
return None
|
||||
return self.ddgres["Definition"] + " <" + self.ddgres["DefinitionURL"] + "> from " + self.ddgres["DefinitionSource"]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue