From 4e1482800417a38335ad4552211a06a8d3b91fe0 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 17 Aug 2019 18:17:14 -0400 Subject: [PATCH] Fix Room inviter_avatar getting set to None --- src/python/matrix_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 1959da29..c2050253 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -358,7 +358,8 @@ class MatrixClient(nio.AsyncClient): topic = room.topic or "", inviter_id = inviter, inviter_name = room.user_name(inviter) if inviter else "", - inviter_avatar = room.avatar_url(inviter) if inviter else "", + inviter_avatar = + (room.avatar_url(inviter) or "") if inviter else "", left = left, filter_string = " ".join({ name,