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")