diff --git a/src/backend/matrix_client.py b/src/backend/matrix_client.py index 52397e47..d8322fbc 100644 --- a/src/backend/matrix_client.py +++ b/src/backend/matrix_client.py @@ -343,7 +343,7 @@ class MatrixClient(nio.AsyncClient): return try: - account.max_upload_size = future.result() + account.max_upload_size = future.result() or 0 except Exception: trace = traceback.format_exc().rstrip() log.warn(