File size: 519 Bytes
622387b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | diff --git a/rdflib/plugins/sparql/update.py b/rdflib/plugins/sparql/update.py
index cd22a752..a6908393 100644
--- a/rdflib/plugins/sparql/update.py
+++ b/rdflib/plugins/sparql/update.py
@@ -181,7 +181,7 @@ def evalModify(ctx: QueryContext, u: CompValue) -> None:
g = ctx.dataset.get_context(u.withClause)
ctx = ctx.pushGraph(g)
- for c in res:
+ for c in list(res):
dg = ctx.graph
if u.delete:
# type error: Unsupported left operand type for - ("None")
|