From c32e539c422acd42520d509bc2e6cd0ce9b64d53 Mon Sep 17 00:00:00 2001 From: Lengyue Date: Tue, 25 Oct 2022 23:28:22 -0400 Subject: [PATCH] fix check --- scrcpy/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrcpy/core.py b/scrcpy/core.py index 5d61849..cf19d98 100644 --- a/scrcpy/core.py +++ b/scrcpy/core.py @@ -202,19 +202,19 @@ def stop(self) -> None: if self.__server_stream is not None: try: self.__server_stream.close() - except: + except Exception: pass if self.control_socket is not None: try: self.control_socket.close() - except: + except Exception: pass if self.__video_socket is not None: try: self.__video_socket.close() - except: + except Exception: pass def __stream_loop(self) -> None: