This commit is contained in:
Manuel Barkhau 2020-08-26 22:26:30 +00:00
parent 3882418dc6
commit 3dd116188a
3 changed files with 4 additions and 2 deletions

View file

@ -211,6 +211,7 @@ def diff(new_vinfo: version.VersionInfo, file_patterns: config.PatternsByGlob) -
try:
rfd = rfd_from_content(pattern_strs, new_vinfo, content)
except NoPatternMatch:
# pylint:disable=raise-missing-from ; we support py2, so not an option
errmsg = f"No patterns matched for '{file_path}'"
raise NoPatternMatch(errmsg)