mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-29 09:35:50 +00:00
Only catch HTTPErrors
Connection timeouts should not be interpreted as missing server support.
This commit is contained in:
parent
c1653937d1
commit
eef269507f
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ import itertools
|
|||
from lxml import etree
|
||||
|
||||
from requests import session as requests_session
|
||||
from requests.exceptions import RequestException
|
||||
from requests.exceptions import HTTPError
|
||||
|
||||
from .base import Item, Storage
|
||||
from .http import USERAGENT, prepare_auth, prepare_verify
|
||||
|
|
@ -76,7 +76,7 @@ def _catch_generator_exceptions(f):
|
|||
try:
|
||||
for x in f(*args, **kwargs):
|
||||
yield x
|
||||
except (RequestException, exceptions.Error):
|
||||
except (HTTPError, exceptions.Error):
|
||||
pass
|
||||
return inner
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue