1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 14:15:13 +00:00

Fix bugs related to sanitize_info

Related: 8012d892bd (r54555230)
This commit is contained in:
pukkandan
2021-08-07 21:16:55 +05:30
parent 575e17a1b9
commit 6e84b21559
3 changed files with 34 additions and 11 deletions

View File

@@ -1836,7 +1836,7 @@ def write_json_file(obj, fn):
try:
with tf:
json.dump(obj, tf, default=repr)
json.dump(obj, tf)
if sys.platform == 'win32':
# Need to remove existing file on Windows, else os.rename raises
# WindowsError or FileExistsError.