Skip to content

Commit e78228d

Browse files
committed
Update rpc_client.py
1 parent bb8b457 commit e78228d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ksrpc/rpc_client.py

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def __call__(self, *args, **kwargs):
7070
self._connection._with = False # 重置
7171
logger.warning(f'{func} timeout, {self.recv_timeout}s')
7272
raise
73+
except Exception as e:
74+
self._connection._with = False # 重置
75+
logger.warning(f'{func} error, {e}')
76+
raise
7377

7478
def __len__(self):
7579
# 不知怎么回事,被主动调用了

0 commit comments

Comments
 (0)