fix FileSizeProgressBar when therte's no data in response
@@ -202,6 +202,7 @@ class FileSizeProgressBar(tqdm):
self, result, field="id", error_resource_type=None, error_parameter="ids"
):
try:
+ if "data" in result:
for item in result["data"]:
# Use the length of the id / name and a newline to match original file
self.update(len(item[field]) + len("\n"))
