Skip to content

Commit a7cc794

Browse files
committed
Fix exception thrown when backend does not have received values for timestamp
1 parent 5ddedfc commit a7cc794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Metrics/MetricsCommandBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private function extractValue(array $point, SourceField $sourceField): ?float
428428
throw new \RuntimeException(\sprintf('Source "%s" not found in the data point.', $sourceField->source->value));
429429
}
430430
if (!isset($point[$sourceField->source->value][$sourceField->aggregation->value])) {
431-
throw new \RuntimeException(\sprintf('Aggregation "%s" not found for source "%s".', $sourceField->aggregation->value, $sourceField->source->value));
431+
return null;
432432
}
433433

434434
return $point[$sourceField->source->value][$sourceField->aggregation->value];

0 commit comments

Comments
 (0)