diff --git a/module_build_service/config.py b/module_build_service/config.py index 8d2faf67..3a5f86ce 100644 --- a/module_build_service/config.py +++ b/module_build_service/config.py @@ -229,7 +229,10 @@ class Config(object): # type conversion convert = self._defaults_by_name[key]['type'] if convert in [bool, int, list, str]: - setattr(self, key, convert(value)) + try: + setattr(self, key, convert(value)) + except: + raise Exception("Configuration value conversion failed for name: %s" % key) # conversion is not required if type is None elif convert is None: setattr(self, key, value)