summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fb.py b/fb.py
index 418d047..7c6f7e2 100755
--- a/fb.py
+++ b/fb.py
@@ -138,6 +138,8 @@ class CURLWrapper:
ret = self.send_post_progress("/file/upload", [])
rets["ids"] += ret["ids"]
rets["urls"] += ret["urls"]
+ assert len(ret["ids"]) == len(ret["urls"])
+ assert len(ret["ids"]) == len(chunk)
for new_id, new_url, existing in zip(ret["ids"], ret["urls"], chunk):
existing.id = new_id
existing.url = new_url