Skip to content

Commit cb570ac

Browse files
add new connection error support
1 parent 99aa10c commit cb570ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/icloudpd/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from requests import Timeout
77
from requests.exceptions import ConnectionError
8+
from urllib3.exceptions import NewConnectionError
89

910
import foundation
1011
from foundation.core import compose, constant, identity
@@ -1533,7 +1534,7 @@ def should_break(counter: Counter) -> bool:
15331534
return 1
15341535
else:
15351536
pass
1536-
except (ConnectionError, TimeoutError, Timeout) as _error:
1537+
except (ConnectionError, TimeoutError, Timeout, NewConnectionError) as _error:
15371538
logger.info("Cannot connect to Apple iCloud service")
15381539
# logger.debug(error)
15391540
# it not watching then return error

0 commit comments

Comments
 (0)