[bug] api check tuple returns lengths are inconsistent
Opened this issue · 0 comments
DerekTBrown commented
When api_checks.main
executes as expected, it returns a 6-tuple:
https://github.com/ysde/grafana-backup-tool/blob/master/grafana_backup/api_checks.py#L48
However, in the error conditions, it returns a 5-tuple:
https://github.com/ysde/grafana-backup-tool/blob/master/grafana_backup/api_checks.py#L14-L24
The caller (save.main
) expects a 6-tuple, causing this to crash:
https://github.com/ysde/grafana-backup-tool/blob/master/grafana_backup/save.py#L48-L53