aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/pam_demo
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/pam_demo')
-rw-r--r--python/examples/pam_demo/demo.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/examples/pam_demo/demo.py b/python/examples/pam_demo/demo.py
index ff91b76..decef8e 100644
--- a/python/examples/pam_demo/demo.py
+++ b/python/examples/pam_demo/demo.py
@@ -74,11 +74,13 @@ def _client_message_callback(message, channel):
def _client_error_callback(error, channel):
print("Client Error: " + error + " on channel " + channel)
- print("Client will now unsubscribe from this unauthorized channel.")
+ print("TTL on grant expired, or token was invalid, or revoked. Client will now unsubscribe from this unauthorized channel.")
client.unsubscribe(channel=channel)
-def _server_error_callback(error):
- print("Server Error: " + error)
+def _server_error_callback(error, channel):
+ print("Server Error: " + error + " on channel " + channel)
+ print("TTL on grant expired, or token was revoked. Server will now unsubscribe from this unauthorized channel.")
+ server.unsubscribe(channel=channel)
def _server_presence_callback(message, channel):
print message