Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fail fast on exceptions #121

slavkoja opened this issue Sep 26, 2014 · 3 comments

Don't fail fast on exceptions #121

slavkoja opened this issue Sep 26, 2014 · 3 comments


Copy link

I got this unhandled exception today:

Unhandled exception occured while syncing skola.ics.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/", line 393, in sync_collection
    force_delete=status_name in force_delete
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/", line 129, in sync
    b_idents = _prepare_idents(storage_b, b_href_to_status)
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/", line 66, in _prepare_idents
    for href, etag in storage.list():
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/storage/", line 552, in list
    for href, etag in self._dav_query(xml):
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/storage/", line 413, in _dav_query
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/storage/", line 189, in request
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/storage/", line 201, in _check_dav_header
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/storage/", line 191, in request
    session=self._session, **self._settings)
  File "/usr/lib/python2.7/dist-packages/vdirsyncer/utils/", line 243, in request
    r = func(method, url, data=data, headers=headers, auth=auth, verify=verify)
  File "/usr/lib/python2.7/dist-packages/requests/", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/", line 375, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='x.y.z', port=443): Max retries exceeded with url: /user/skola.ics/ (Caused by ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known')))
Job 'vdirsyncer --verbosity WARNING sync' terminated (exit status: 1) (mailing output)

I don't know what happened, because i cannot reproduce it now, but despite it, IMO this exception need to be handled and synchronization must continue with other items, nod end here.

The "skola.ics" is a singlefile type.


Copy link

This is intended behavior, i found it useful when debugging. It doesn't make sense from a user perspective though, a --fail-fast flag might make sense.

Copy link

Ah, OK. But perhaps you can consider some as --debug option for this, because it can confuse users as it confused me ;-)

@untitaker untitaker changed the title Unhandled exception occured while syncing Don't fail fast on exceptions Sep 26, 2014
Copy link

This is fixed, see the referenced commit message for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants