Improve room join error handling

This commit is contained in:
Andrew Morgan 2020-06-23 02:11:31 +01:00
parent 22c5b46af0
commit 606d797cc0

View file

@ -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}")