Skip to content

Commit 70eba85

Browse files
committed
another missing revert
1 parent 5f6af6c commit 70eba85

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,10 +909,11 @@ def unsubscribe(self, topic: str) -> None:
909909
if self.on_unsubscribe is not None:
910910
self.on_unsubscribe(self, self._user_data, t, self._pid)
911911
self._subscribed_topics.remove(t)
912-
else:
913-
raise MMQTTException(
914-
f"invalid message received as response to UNSUBSCRIBE: {hex(op)}"
915-
)
912+
return
913+
914+
raise MMQTTException(
915+
f"invalid message received as response to UNSUBSCRIBE: {hex(op)}"
916+
)
916917

917918
def _recompute_reconnect_backoff(self) -> None:
918919
"""

0 commit comments

Comments
 (0)