We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbad0e0 commit 73dcf8cCopy full SHA for 73dcf8c
src/workflows/transport/pika_transport.py
@@ -330,7 +330,15 @@ def _call_message_callback(
330
body: bytes,
331
):
332
"""Rewrite and redirect a pika callback to the subscription function"""
333
- merged_headers = dict(properties.headers)
+ if properties.headers is None:
334
+ logger.warning(
335
+ f"""Got unexpected empty header; this could be an error?
336
+{_channel=}
337
+{method=}
338
+{properties=}
339
+{body=}"""
340
+ )
341
+ merged_headers = dict(properties.headers or {})
342
merged_headers.update(
343
{
344
"consumer_tag": str(method.consumer_tag),
0 commit comments