From 7c384f597bb27366c066bed2228004cca9362a85 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 23 Dec 2019 15:45:06 -0600 Subject: [PATCH] one day I'll learn - w+ with + for new file creationn --- app/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sound.py b/app/sound.py index bea845c..8691908 100644 --- a/app/sound.py +++ b/app/sound.py @@ -73,7 +73,7 @@ service_functions = { } if not os.path.exists(os.path.join('app', 'sounds', 'filenames.json')): - with open(os.path.join('app', 'sounds', 'filenames.json'), 'w') as file: + with open(os.path.join('app', 'sounds', 'filenames.json'), 'w+') as file: json.dump({'youtube' : {} }) # Streams a prepared MP3 back to the client