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
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
account.max_upload_size = future.result()
|
account.max_upload_size = future.result() or 0
|
||||||
except Exception:
|
except Exception:
|
||||||
trace = traceback.format_exc().rstrip()
|
trace = traceback.format_exc().rstrip()
|
||||||
log.warn(
|
log.warn(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user