From de8ba29ae7881c886ee18530d3a5599b7b63cb65 Mon Sep 17 00:00:00 2001 From: Lucas <116588+hairmare@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:17:17 +0100 Subject: [PATCH] fix: Pass empty list instead of None when headers are empty (#211) --- minioevents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()