diff --git a/minioevents.py b/minioevents.py index 3bbe233..8fd3a68 100644 --- a/minioevents.py +++ b/minioevents.py @@ -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()