Skip to content

Commit 966b434

Browse files
graingerthukkin
andauthored
Update coverage/tomlconfig.py
Co-authored-by: Taneli Hukkinen <[email protected]>
1 parent b2893a8 commit 966b434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coverage/tomlconfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def read(self, filenames):
4848
toml_text = substitute_variables(toml_text, os.environ)
4949
try:
5050
self.data = tomli.loads(toml_text)
51-
except tomli.TomlDecodeError as err:
52-
raise TomlDecodeError(*err.args)
51+
except tomli.TOMLDecodeError as err:
52+
raise TomlDecodeError(str(err))
5353
return [filename]
5454
else:
5555
has_toml = re.search(r"^\[tool\.coverage\.", toml_text, flags=re.MULTILINE)

0 commit comments

Comments
 (0)