mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 06:35:51 -07:00
json.dump bug fix
This commit is contained in:
parent
5fb593d50a
commit
f02f87db8e
1 changed files with 1 additions and 1 deletions
|
@ -1830,7 +1830,7 @@ def write_json_file(obj, fn):
|
|||
|
||||
try:
|
||||
with tf:
|
||||
json.dump(obj)
|
||||
json.dump(obj, tf)
|
||||
if sys.platform == 'win32':
|
||||
# Need to remove existing file on Windows, else os.rename raises
|
||||
# WindowsError or FileExistsError.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue