Fix upload for servers not returning max size

This commit is contained in:
miruka 2020-07-19 15:37:05 -04:00
parent 7595c522c4
commit 6b1a5a46e6

View File

@ -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(