Skip to content

Commit ebe109e

Browse files
authored
Add raise-missing-from rule (#3885)
* Fix for 'raise-missing-from' rule * undo change
1 parent 06d3fff commit ebe109e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ disable = [
9696
"no-value-for-parameter",
9797
"not-callable",
9898
"protected-access",
99-
"raise-missing-from",
10099
"redefined-builtin",
101100
"redefined-outer-name",
102101
"subprocess-run-check",

src/molecule/interpolation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def interpolate(self, string: str, keep_string=None) -> str:
8383
try:
8484
return self.templater(string).substitute(self.mapping, keep_string) # type: ignore
8585
except ValueError as e:
86-
raise InvalidInterpolation(string, e)
86+
raise InvalidInterpolation(string, e) from e
8787

8888

8989
class TemplateWithDefaults(string.Template):

0 commit comments

Comments
 (0)