config_error is an exception, raise directly config_error
authorEmmanuel Garette <egarette@cadoles.com>
Wed, 25 Sep 2013 08:22:31 +0000 (10:22 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Wed, 25 Sep 2013 08:22:31 +0000 (10:22 +0200)
tiramisu/value.py

index 247d273..d2aa6a1 100644 (file)
@@ -241,7 +241,7 @@ class Values(object):
                                         force_properties=force_properties,
                                         force_permissives=force_permissives)
         if config_error is not None:
                                         force_properties=force_properties,
                                         force_permissives=force_permissives)
         if config_error is not None:
-            raise ConfigError(config_error)
+            raise config_error
         return value
 
     def __setitem__(self, opt, value):
         return value
 
     def __setitem__(self, opt, value):