From 606d797cc0bac75b134aab473bf748f7134339be Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 23 Jun 2020 02:11:31 +0100 Subject: [PATCH] Improve room join error handling --- callbacks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/callbacks.py b/callbacks.py index ba1f036..c26ddc4 100644 --- a/callbacks.py +++ b/callbacks.py @@ -78,6 +78,9 @@ class Callbacks(object): attempt, result.message, ) else: - logger.info(f"Joined {room.room_id}") break + else: + logger.error("Unable to join room: %s", room.room_id) + # Successfully joined room + logger.info(f"Joined {room.room_id}")