Improve stability of DDG searching
This commit is contained in:
parent
bba0840a17
commit
bb4fe1a8fe
@ -18,7 +18,10 @@ class DDGSearch:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def type(self):
|
def type(self):
|
||||||
|
if self.ddgres.hasNode("Type"):
|
||||||
return self.ddgres.getFirstNode("Type").getContent()
|
return self.ddgres.getFirstNode("Type").getContent()
|
||||||
|
else:
|
||||||
|
return ""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def definition(self):
|
def definition(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user