mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-27 09:15:50 +00:00
parent
6541b5b4af
commit
1e9fe12904
1 changed files with 2 additions and 1 deletions
|
|
@ -186,6 +186,7 @@ def _discover_from_config(config):
|
|||
|
||||
def _handle_collection_not_found(config, collection, e=None):
|
||||
storage_name = config.get('instance_name', None)
|
||||
assert config.setdefault('collection', collection) == collection
|
||||
|
||||
cli_logger.error('{}No collection {} found for storage {}.'
|
||||
.format('{}\n'.format(e) if e else '',
|
||||
|
|
@ -195,7 +196,7 @@ def _handle_collection_not_found(config, collection, e=None):
|
|||
storage_type = config['type']
|
||||
cls, config = storage_class_from_config(config)
|
||||
try:
|
||||
args = cls.create_collection(collection=collection, **config)
|
||||
args = cls.create_collection(**config)
|
||||
args['type'] = storage_type
|
||||
return args
|
||||
except NotImplementedError as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue