mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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 lxml import etree
|
||||||
|
|
||||||
from requests import session as requests_session
|
from requests import session as requests_session
|
||||||
from requests.exceptions import RequestException
|
from requests.exceptions import HTTPError
|
||||||
|
|
||||||
from .base import Item, Storage
|
from .base import Item, Storage
|
||||||
from .http import USERAGENT, prepare_auth, prepare_verify
|
from .http import USERAGENT, prepare_auth, prepare_verify
|
||||||
|
|
@ -76,7 +76,7 @@ def _catch_generator_exceptions(f):
|
||||||
try:
|
try:
|
||||||
for x in f(*args, **kwargs):
|
for x in f(*args, **kwargs):
|
||||||
yield x
|
yield x
|
||||||
except (RequestException, exceptions.Error):
|
except (HTTPError, exceptions.Error):
|
||||||
pass
|
pass
|
||||||
return inner
|
return inner
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue