From e792b11c1cbb307ebdac6801c3e4446d02e4fb79 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 23 Dec 2019 15:47:57 -0600 Subject: [PATCH] still learning python - specify fp for json dump call --- app/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sound.py b/app/sound.py index 193fde0..7b34b1e 100644 --- a/app/sound.py +++ b/app/sound.py @@ -77,7 +77,7 @@ if not os.path.exists(os.path.join('app', 'sounds')): if not os.path.exists(os.path.join('app', 'sounds', 'filenames.json')): with open(os.path.join('app', 'sounds', 'filenames.json'), 'w+') as file: - json.dump({'youtube' : {} }) + json.dump({'youtube' : {} }, file) # Streams a prepared MP3 back to the client @app.route('/stream//')