Fix: Catch ReadTimeout in DroidCast_raw

This commit is contained in:
LmeSzinc 2023-02-08 01:54:22 +08:00
parent 278077f5b9
commit bfb5004dc1

View File

@ -57,7 +57,8 @@ def retry(func):
self.detect_package()
# DroidCast not running
# requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
except requests.exceptions.ConnectionError as e:
# ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=20482): Read timed out. (read timeout=3)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout) as e:
logger.error(e)
def init():