From f02f87db8e2186ed4df4721c1e57269a3fdf44c5 Mon Sep 17 00:00:00 2001 From: Sacha Arnoud Date: Tue, 21 Sep 2021 16:33:20 +0000 Subject: [PATCH] json.dump bug fix --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index ef0afd686..e722eed58 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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.