Fix streamfile error
This commit is contained in:
parent
6d222b6ed7
commit
f1c9eafd79
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue