mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +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
|
||||
)
|
||||
|
||||
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:
|
||||
done.wait()
|
||||
|
|
|
|||
Loading…
Reference in a new issue