Skip to content

Commit ada9202

Browse files
committed
Use more specific assert error string
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 162e4f6 commit ada9202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/sdk/actor/power_distributing/_distribution_algorithm/_distribution_algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, batteries: list[BatteryData]) -> None:
5555
Args:
5656
batteries: The batteries to aggregate.
5757
"""
58-
assert len(batteries) > 0, "No batteries given."
58+
assert len(batteries) > 0, "AggregatedBatteryData: No batteries given."
5959

6060
# We need only one component ID for DistBatteryData to be able to
6161
# identify the pair

0 commit comments

Comments
 (0)