No need to str(path) anymore for model item Upload

This commit is contained in:
miruka
2019-11-12 09:39:21 -04:00
parent 37f5f5973c
commit 5f04628178
2 changed files with 3 additions and 3 deletions

View File

@@ -191,7 +191,7 @@ class MatrixClient(nio.AsyncClient):
size = path.resolve().stat().st_size
encrypt = room_id in self.encrypted_rooms
upload_item = Upload(str(path), total_size=size)
upload_item = Upload(path, total_size=size)
self.models[Upload, room_id][upload_item.uuid] = upload_item
url, mime, crypt_dict = await self.upload_file(