fix: dictionary changed size during iteration during deepcopy

This commit is contained in:
lucasheld 2023-03-25 19:26:53 +01:00
parent b33d2323ca
commit 50b8a5ac70

View file

@ -475,7 +475,7 @@ class UptimeKumaApi(object):
return []
time.sleep(0.01)
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:
r = self.sio.call(event, data)