summaryrefslogtreecommitdiff
path: root/src-py/neo4j_util.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-12 12:43:54 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-12 12:43:54 +0200
commitdb91e66762e1fdfc737788d8ba89bb1a0996fc5a (patch)
tree8763c14d5462a758d09767b3c0bf284629c7825f /src-py/neo4j_util.py
parent3f580af48a7738fe3ff539a63918f4a22da6e91f (diff)
allow query sets to partially succeed
Diffstat (limited to 'src-py/neo4j_util.py')
-rw-r--r--src-py/neo4j_util.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src-py/neo4j_util.py b/src-py/neo4j_util.py
index 61b40c06..6b78dc18 100644
--- a/src-py/neo4j_util.py
+++ b/src-py/neo4j_util.py
@@ -30,13 +30,12 @@ def cfmt(fmt_str, *args, **kwargs):
def post_neo4j(url, data):
"""
@return dict object from the neo4j json POST response
- @raise exception: if the 'errors' key is not empty
"""
ret = post(url, data)
ret_data = json.load(ret)
- if ret_data['errors']:
- raise Exception('neo4j exception: ' + str(ret_data['errors']))
+ # [!] do not raise exception if ret_data['errors'] is not empty -
+ # this allows query-sets to partially succeed
return ret_data