Skip to content

Commit

Permalink
fix: Pass empty list instead of None when headers are empty (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Dec 2, 2024
1 parent 2a09402 commit de8ba29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minioevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _key_mapper(ce: CloudEvent) -> Any | None: # noqa: ANN401
producer_topic,
key=km.key,
value=km.value,
headers=km.headers if km.headers else None,
headers=km.headers if km.headers else [],
).add_errback(on_send_error)
producer.flush()

Expand Down

0 comments on commit de8ba29

Please sign in to comment.