mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Catch all exceptions.
The idea is that a storage's __init__ may raise *anything* if the values are incorrect. We already do very explicit checks whether the user specified the wrong parameters, and show the exception if that's not the case.
This commit is contained in:
parent
9616f0bbfe
commit
ff063d6d4c
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ def storage_instance_from_config(config, description=None):
|
|||
cls = storage_names[storage_name]
|
||||
try:
|
||||
return cls(**config)
|
||||
except TypeError:
|
||||
except Exception:
|
||||
all, required = get_init_args(cls)
|
||||
given = set(config)
|
||||
missing = required - given
|
||||
|
|
|
|||
Loading…
Reference in a new issue