mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Fix yet another compatibility issue with Path objects and Python 3.5
This commit is contained in:
parent
87bbd764b9
commit
11ea15aa08
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue