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": {
"METRIC__INTERVAL": "5",
"METRIC__LOG__ENABLED": "True",
"METRIC__DISK__PATHS": "[\"/var\", \"/\", \"/dev\"]",
"METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/dummy-metric\"]",
},
"justMyCode": true

View file

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