From 871a109fa808bb8bee089a5b35c0043a47b5cfe5 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 23 Dec 2019 15:43:25 -0600 Subject: [PATCH] change file read to write minor error --- app/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sound.py b/app/sound.py index 2853327..bea845c 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'), 'r+') 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