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 | f535774cf58b43b066a94b544b507b8a939b75c1 (patch) | |
tree | 317801dc26d6a4b50eab58e8dcbb701b6f8bddb6 /bin/merge-cve-files | |
parent | fd167ab6920c1f2e8cbc0a6e57f5073daebf4ae8 (diff) |
merge-cve-files: fix variable name in assertion message
And slightly improve the message while at it.
Diffstat (limited to 'bin/merge-cve-files')
-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) |