Make sure the hashfield response is correct
This commit is contained in:
parent
b41570b663
commit
bc9bddf918
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class Peer(object):
|
|||
|
||||
self.time_hashfield = time.time()
|
||||
res = self.request("getHashfield", {"site": self.site.address})
|
||||
if not res or "error" in res:
|
||||
if not res or "error" in res or not "hashfield_raw" in res:
|
||||
return False
|
||||
self.hashfield.replaceFromString(res["hashfield_raw"])
|
||||
|
||||
|
|
Loading…
Reference in a new issue