[Git][security-tracker-team/security-tracker][master] merge-cve-files: fix variable name in assertion message
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Fri May 14 12:38:36 BST 2021
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
d1d70800 by Emilio Pozuelo Monfort at 2021-05-14T13:38:22+02:00
merge-cve-files: fix variable name in assertion message
And slightly improve the message while at it.
- - - - -
1 changed file:
- bin/merge-cve-files
Changes:
=====================================
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)
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/d1d7080019dc8118754e1992853986bf3fd964b7
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/d1d7080019dc8118754e1992853986bf3fd964b7
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20210514/8cd03e3e/attachment.htm>
More information about the debian-security-tracker-commits
mailing list