From 40a0ab3f484575ed2fc8a2ffa0329828a78d8539 Mon Sep 17 00:00:00 2001 From: Bo Zhou <2466956298@qq.com> Date: Thu, 28 May 2020 10:16:36 +0800 Subject: [PATCH] Update cluster_monitor.py (#273) --- parl/remote/cluster_monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parl/remote/cluster_monitor.py b/parl/remote/cluster_monitor.py index 99bc2be..b42d3ca 100644 --- a/parl/remote/cluster_monitor.py +++ b/parl/remote/cluster_monitor.py @@ -103,7 +103,8 @@ class ClusterMonitor(object): cluster_address (str): IP address of the exited client. """ self.lock.acquire() - self.status['clients'].pop(client_address) + if client_address in self.status['clients']: + self.status['clients'].pop(client_address) self.lock.release() def get_status_info(self): -- GitLab