Skip to content

Commit

Permalink
Update coverage/tomlconfig.py
Browse files Browse the repository at this point in the history
Co-authored-by: Taneli Hukkinen <[email protected]>
  • Loading branch information
graingert and hukkin authored Jul 9, 2021
1 parent b2893a8 commit 966b434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coverage/tomlconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def read(self, filenames):
toml_text = substitute_variables(toml_text, os.environ)
try:
self.data = tomli.loads(toml_text)
except tomli.TomlDecodeError as err:
raise TomlDecodeError(*err.args)
except tomli.TOMLDecodeError as err:
raise TomlDecodeError(str(err))
return [filename]
else:
has_toml = re.search(r"^\[tool\.coverage\.", toml_text, flags=re.MULTILINE)
Expand Down

0 comments on commit 966b434

Please sign in to comment.