cw script empty value check
@@ -99,6 +99,7 @@ def main():
prev_metric_map = {}
for old_metric in reversed(prev_metrics):
if old_metric["Label"] in current_metrics:
+ if old_metric["Values"]:
old_value = max(old_metric["Values"])
prev_metric_map[old_metric["Label"]] = old_value
