Skip to content

Commit baa75a5

Browse files
committed
fix for printing inherited vars
1 parent 83d0bd0 commit baa75a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nodescraper/interfaces/task.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def _build_event(
107107
data = {"task_name": self.__class__.__name__, "task_type": self.TASK_TYPE}
108108

109109
else:
110+
# Copy to avoid mutating the caller's dict
111+
data = copy.copy(data)
110112
data["task_name"] = self.__class__.__name__
111113
data["task_type"] = self.TASK_TYPE
112114

0 commit comments

Comments
 (0)