mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix error message if etesync is not installed
This commit is contained in:
parent
76b9bb0aa1
commit
9d393623fd
1 changed files with 1 additions and 1 deletions
|
|
@ -127,10 +127,10 @@ class EtesyncStorage(Storage):
|
||||||
@classmethod
|
@classmethod
|
||||||
def discover(cls, email, secrets_dir, server_url=None, db_path=None,
|
def discover(cls, email, secrets_dir, server_url=None, db_path=None,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
assert cls._collection_type
|
|
||||||
if kwargs.get('collection', None) is not None:
|
if kwargs.get('collection', None) is not None:
|
||||||
raise TypeError('collection argument must not be given.')
|
raise TypeError('collection argument must not be given.')
|
||||||
session = _Session(email, secrets_dir, server_url, db_path)
|
session = _Session(email, secrets_dir, server_url, db_path)
|
||||||
|
assert cls._collection_type
|
||||||
session.etesync.sync_journal_list()
|
session.etesync.sync_journal_list()
|
||||||
for entry in session.etesync.list():
|
for entry in session.etesync.list():
|
||||||
if isinstance(entry.collection, cls._collection_type):
|
if isinstance(entry.collection, cls._collection_type):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue