Skip to content

Commit abf593a

Browse files
committed
Merge pull request #8 from ktbs/fix_addN_method
cmdTripleDict was not filled in the beginning of addN
2 parents c8f7748 + 7376e52 commit abf593a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rdflib_sqlalchemy/SQLAlchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def addN(self, quads):
685685
context,
686686
isinstance(context, QuotedGraph))
687687

688-
cmdTriple = cmdTripleDict.get(buildCommandType, {})
688+
cmdTriple = cmdTripleDict.setdefault(buildCommandType, {})
689689
cmdTriple.setdefault('cmd', cmd)
690690
cmdTriple.setdefault('params', []).append(params)
691691

0 commit comments

Comments
 (0)