Skip to content

Commit eb7e8bc

Browse files
committed
Fix Dispatch.to_protobuf with no recurrence failing
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent a2c4c91 commit eb7e8bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/client/dispatch/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def to_protobuf(self) -> PBDispatch:
357357
is_active=self.active,
358358
is_dry_run=self.dry_run,
359359
payload=payload,
360-
recurrence=self.recurrence.to_protobuf(),
360+
recurrence=self.recurrence.to_protobuf() if self.recurrence else None,
361361
),
362362
)
363363

0 commit comments

Comments
 (0)