mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Show original error message
This commit is contained in:
parent
e76fd29aec
commit
fcf901e620
2 changed files with 3 additions and 2 deletions
|
|
@ -368,7 +368,8 @@ def storage_instance_from_config(config, create=True):
|
|||
|
||||
try:
|
||||
return cls(**new_config)
|
||||
except exceptions.CollectionNotFound:
|
||||
except exceptions.CollectionNotFound as e:
|
||||
cli_logger.error(str(e))
|
||||
if create:
|
||||
_handle_collection_not_found(config, None)
|
||||
return storage_instance_from_config(config, create=False)
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class SingleFileStorage(Storage):
|
|||
def create_collection(cls, collection, **kwargs):
|
||||
if collection is not None:
|
||||
raise ValueError('collection is not a valid argument for {}'
|
||||
.format(type(self).__name__))
|
||||
.format(cls.__name__))
|
||||
|
||||
checkfile(kwargs['path'], create=True)
|
||||
return kwargs
|
||||
|
|
|
|||
Loading…
Reference in a new issue