Fix streamfile error

This commit is contained in:
HelloZeroNet 2016-03-26 00:22:46 +01:00
parent 6d222b6ed7
commit f1c9eafd79

View file

@ -182,7 +182,7 @@ class Peer(object):
while True: # Read in 512k parts
res = self.request("streamFile", {"site": site, "inner_path": inner_path, "location": location}, stream_to=buff)
if not res: # Error
if not res or "location" not in res: # Error
self.log("Invalid response: %s" % res)
return False