From acda242d082c4cdaa4a690fe55577423bc035afa Mon Sep 17 00:00:00 2001 From: Christopher McAvaney Date: Sun, 25 Feb 2024 12:34:05 +1100 Subject: [PATCH] fix to reflect new method --- docs/migrations.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/migrations.rst b/docs/migrations.rst index f2688c1f..82f66fc2 100644 --- a/docs/migrations.rst +++ b/docs/migrations.rst @@ -85,9 +85,9 @@ But if you had comparison with other value, you will need to update the code. It # NEW code def on_connect(client, userdata, flags, reason_code, properties): - if rc == "Unsupported protocol version": + if reason_code == "Unsupported protocol version": # handle bad protocol version - if rc == "Client identifier not valid": + if reason_code == "Client identifier not valid": # handle bad identifier on_disconnect