solace-samples-python icon indicating copy to clipboard operation
solace-samples-python copied to clipboard

[Bug]: direct_replier.py sample is broken

Open TrentDaniel opened this issue 10 months ago • 0 comments

Bug Description

  • Line 27 has a an improper comparison to None with request.get_payload_as_string() != None
  • Line 41 references a variable outbound_msg_builder when no variable under that name has been instantiated

Expected Behavior

  • Line 27, the comparison should be written as request.get_payload_as_string() is not None
  • Line 41, instead of referencing outbound_msg_builder, self.message_builder should be referenced

Steps to Reproduce

Reproduction not required, just look at source.

Solace Product

Solace APIs

Solace Broker version

sample issue, not relevant

Solace API

sample issue, not relevant

Solace API version

sample issue, not relevant

TrentDaniel avatar Apr 30 '24 16:04 TrentDaniel