From 6b1a5a46e6e31877bdf773e278c316c0ad8d669c Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 19 Jul 2020 15:37:05 -0400 Subject: [PATCH] Fix upload for servers not returning max size --- src/backend/matrix_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(