diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-03-28 11:22:19 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-03-28 11:22:19 +0200 |
commit | dfae82ab4d61e3d5a3a09264025345717f4f4373 (patch) | |
tree | 1d597a4d09627e0c75aeaeb3aaf4078d5fecaf0a | |
parent | e159a2e981d2629fa145ab584e8c3853b097d180 (diff) |
Assert that we get an id for each file we upload
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | fb.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |