Skip to content

Commit 4356caa

Browse files
authored
Merge pull request #87 from hydroshare/fix_retrieve_bag
fix: return result from write_file method in HydroShareSession
2 parents 79603b1 + 9a05180 commit 4356caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hsclient/hydroshare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ def retrieve_bag(self, path, save_path=""):
13901390
time.sleep(CHECK_TASK_PING_INTERVAL)
13911391
return self.retrieve_bag(path, save_path)
13921392

1393-
self.write_file(path, response.content, save_path)
1393+
return self.write_file(path, response.content, save_path)
13941394

13951395
def write_file(self, path, content, save_path=""):
13961396
filename = path.split("/")[-1]

0 commit comments

Comments
 (0)