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:
Markus Unterwaditzer 2014-05-03 00:18:55 +02:00
parent 9616f0bbfe
commit ff063d6d4c

View file

@ -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