A build of "stable/dunfell-nut" caused incorrect data to be added to the metrics repo and resulted in script failures. Handle this situation better.
Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- scripts/cve-generate-chartdata | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/cve-generate-chartdata b/scripts/cve-generate-chartdata index e187f8b..8b9df64 100755 --- a/scripts/cve-generate-chartdata +++ b/scripts/cve-generate-chartdata @@ -28,7 +28,11 @@ for branch in os.listdir(args.resultsdir): branchdir = os.path.join(args.resultsdir, branch) for f in os.listdir(branchdir): ts = f.split(".")[0] - rounded_ts = str(round_to_day(ts)) + try: + rounded_ts = str(round_to_day(ts)) + except ValueError: + # Couldn't parse a timestamp from filename + continue if rounded_ts not in counts: counts[rounded_ts] = {} if branch not in counts[rounded_ts]: -- 2.40.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63004): https://lists.yoctoproject.org/g/yocto/message/63004 Mute This Topic: https://lists.yoctoproject.org/mt/105747379/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-