diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2021-05-14 10:31:18 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2021-05-14 13:38:22 +0200 |
commit | d1d7080019dc8118754e1992853986bf3fd964b7 (patch) | |
tree | 45750f68ea5b1fa1219e14899865dc7883b4593e /bin | |
parent | 504311dc940eefceb6222e61ea107f0642c438c0 (diff) |
merge-cve-files: fix variable name in assertion message
And slightly improve the message while at it.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/merge-cve-files | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/merge-cve-files b/bin/merge-cve-files index dcc7b9c6a2..a26e38ab68 100755 --- a/bin/merge-cve-files +++ b/bin/merge-cve-files @@ -14,7 +14,7 @@ from sectracker.parsers import cvelist, writecvelist, PackageAnnotation, FlagAnn def merge_annotations(annotations, new_annotation): if not isinstance(new_annotation, PackageAnnotation): - raise NotImplementedError(f"unsupported annotation of type {type(annotation)}") + raise NotImplementedError(f"unsupported annotation of type {new_annotation.type} (line {new_annotation.line})") annotations = list(annotations) |