Skip to content

Commit 7376e52

Browse files
committed
cmdTripleDict was not filled in the beginning of addN
1 parent 11c2ba6 commit 7376e52

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)