From db91e66762e1fdfc737788d8ba89bb1a0996fc5a Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 12 Oct 2014 12:43:54 +0200 Subject: allow query sets to partially succeed --- src-py/neo4j_util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src-py') 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 -- cgit v1.3.1