Skip to content

Commit ee0cd3c

Browse files
committed
another separate var declaration
1 parent 06f1674 commit ee0cd3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,8 @@ def _wait_for_msg(self, timeout: float = 0.1) -> Union[int, None]:
10401040
f"Topic length {topic_len} in PUBLISH packet exceeds remaining length {sz} - 2"
10411041
)
10421042

1043-
topic = self._sock_exact_recv(topic_len)
1044-
topic = str(topic, "utf-8")
1043+
topic_buf = self._sock_exact_recv(topic_len)
1044+
topic = str(topic_buf, "utf-8")
10451045
sz -= topic_len + 2
10461046
pid = 0
10471047
if res[0] & 0x06:

0 commit comments

Comments
 (0)