Commit 3ee7b64f by Dan Robinson

added check in connection.py

parent 560ada66
......@@ -169,7 +169,10 @@ class ParseBatcher(ParseBase):
# perform the callbacks with the response data (updating the existing
# objets, etc)
for callback, response in zip(callbacks, responses):
if "success" in response:
callback(response["success"])
else:
raise core.ParseError(response["error"])
def batch_save(self, objects):
"""save a list of objects in one operation"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment