handle empty aggregate reports correctly

This commit is contained in:
Jörn-Michael Miehe 2023-09-02 15:16:42 +00:00
parent 61ede82f36
commit ec322276dd
2 changed files with 3 additions and 1 deletions

1
.vscode/launch.json vendored
View file

@ -12,7 +12,6 @@
"env": { "env": {
"METRIC__INTERVAL": "5", "METRIC__INTERVAL": "5",
"METRIC__LOG__ENABLED": "True", "METRIC__LOG__ENABLED": "True",
"METRIC__DISK__PATHS": "[\"/var\", \"/\", \"/dev\"]",
"METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/dummy-metric\"]", "METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/dummy-metric\"]",
}, },
"justMyCode": true "justMyCode": true

View file

@ -102,6 +102,9 @@ class Report:
reports = [data.report for data in get_data()] reports = [data.report for data in get_data()]
if not reports:
return None
return cls( return cls(
result=settings.report_outer.format( result=settings.report_outer.format(
name=settings.name, name=settings.name,