Skip to content

Commit

Permalink
fix: KeyError 'reply_to' in rabbit (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
ApostolFet authored Dec 19, 2024
1 parent a728ba7 commit 5f9c7b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion faststream/rabbit/publisher/usecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(

request_options = dict(message_kwargs)
self.headers = request_options.pop("headers") or {}
self.reply_to = request_options.pop("reply_to", "")
self.reply_to = request_options.pop("reply_to", None) or ""
self.timeout = request_options.pop("timeout", None)

message_options, _ = filter_by_dict(MessageOptions, request_options)
Expand Down
2 changes: 1 addition & 1 deletion faststream/rabbit/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(
**message_options: Unpack["MessageOptions"],
) -> None:
headers = message_options.pop("headers", {})
reply_to = message_options.pop("reply_to") or ""
reply_to = message_options.pop("reply_to", None) or ""
correlation_id = message_options.pop("correlation_id", None)

super().__init__(
Expand Down

0 comments on commit 5f9c7b6

Please sign in to comment.