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 | cae3fa4aa64b909901ff369e90094f2f899659e6 (patch) | |
tree | 420ea7bd5e87b2e1d5f10748d434919e1a996d37 /bin | |
parent | 6003450df76c182850f3885b61df83f3f644fa00 (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) |