mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Fix yet another compatibility issue with Path objects and Python 3.5
This commit is contained in:
parent
87bbd764b9
commit
11ea15aa08
@ -214,7 +214,8 @@ class DownloadMedia(BaseClient):
|
|||||||
extension
|
extension
|
||||||
)
|
)
|
||||||
|
|
||||||
self.download_queue.put((data, directory, file_name, done, progress, progress_args, path))
|
# Cast to string because Path objects aren't supported by Python 3.5
|
||||||
|
self.download_queue.put((data, str(directory), str(file_name), done, progress, progress_args, path))
|
||||||
|
|
||||||
if block:
|
if block:
|
||||||
done.wait()
|
done.wait()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user