fix: dictionary changed size during iteration during deepcopy
This commit is contained in:
parent
b33d2323ca
commit
50b8a5ac70
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ class UptimeKumaApi(object):
|
||||||
return []
|
return []
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
time.sleep(0.05) # wait for multiple messages
|
time.sleep(0.05) # wait for multiple messages
|
||||||
return deepcopy(self._event_data[event])
|
return deepcopy(self._event_data[event].copy())
|
||||||
|
|
||||||
def _call(self, event, data=None) -> Any:
|
def _call(self, event, data=None) -> Any:
|
||||||
r = self.sio.call(event, data)
|
r = self.sio.call(event, data)
|
||||||
|
|
Loading…
Reference in a new issue