Skip to content

Commit 0d36c0c

Browse files
committed
Manually update init keys to avoid overwriting via update
1 parent 17d8075 commit 0d36c0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

instana/span.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ class InstanaSpan(object):
88
n = None
99
f = None
1010
ec = 0
11-
error = False
11+
error = None
1212
data = None
1313

1414
def __init__(self, **kwds):
15-
self.__dict__.update(kwds)
15+
for key in kwds:
16+
self.__dict__[key] = kwds[key]
1617

1718

1819
class Data(object):

0 commit comments

Comments
 (0)