Skip to content

Commit

Permalink
Fix Dispatch.to_protobuf with no recurrence failing
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
  • Loading branch information
Marenz committed Sep 24, 2024
1 parent 8e6719b commit 039d62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frequenz/client/dispatch/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def to_protobuf(self) -> PBDispatch:
is_active=self.active,
is_dry_run=self.dry_run,
payload=payload,
recurrence=self.recurrence.to_protobuf(),
recurrence=self.recurrence.to_protobuf() if self.recurrence else None,
),
)

Expand Down

0 comments on commit 039d62e

Please sign in to comment.