summaryrefslogtreecommitdiff
path: root/src-py/neo4j_util.py
diff options
context:
space:
mode:
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