mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-05 10:45:51 +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
|
||||
def discover(cls, email, secrets_dir, server_url=None, db_path=None,
|
||||
**kwargs):
|
||||
assert cls._collection_type
|
||||
if kwargs.get('collection', None) is not None:
|
||||
raise TypeError('collection argument must not be given.')
|
||||
session = _Session(email, secrets_dir, server_url, db_path)
|
||||
assert cls._collection_type
|
||||
session.etesync.sync_journal_list()
|
||||
for entry in session.etesync.list():
|
||||
if isinstance(entry.collection, cls._collection_type):
|
||||
|
|
|
|||
Loading…
Reference in a new issue