From ff063d6d4c29574aa6f059ce3bc945f15a1d5772 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 3 May 2014 00:18:55 +0200 Subject: [PATCH] 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. --- vdirsyncer/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdirsyncer/cli.py b/vdirsyncer/cli.py index 26c5c4b..1d17117 100644 --- a/vdirsyncer/cli.py +++ b/vdirsyncer/cli.py @@ -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