We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b988df commit d175c00Copy full SHA for d175c00
kauldron/konfig/module_configdict.py
@@ -134,12 +134,12 @@ def module_config(self) -> konfig.ConfigDict:
134
config = self.module.get_config(self.config_args)
135
else:
136
config = self.module.get_config()
137
- except Exception as e: # pylint: disable=broad-exception-caught
+ except: # pylint: disable=broad-exception-caught
138
msg = f"Failed to instantiate config from {self.module.__name__!r}"
139
if self.config_args:
140
msg += f" with args {self.config_args}"
141
msg += ".\n\n"
142
- epy.reraise(e, prefix=msg)
+ raise ValueError(msg) # pylint: disable=raise-missing-from
143
144
# merge with cfg overrides which are stored in root of self.
145
_apply_overrides(config, overrides=self.as_flat_dict())
0 commit comments