mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-09 10:37:36 +08:00
Fix: Catch ReadTimeout in DroidCast_raw
This commit is contained in:
parent
278077f5b9
commit
bfb5004dc1
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user