Fix upload for servers not returning max size
This commit is contained in:
parent
7595c522c4
commit
6b1a5a46e6
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user