From 8537dfbf21da8a7ba80871288166d1b230130239 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 17 Feb 2023 16:49:23 +0200 Subject: [PATCH] dont commit on error --- files/routes/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index b42657201..22c7a26de 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -750,7 +750,7 @@ def _change_song_youtube(vid, id): try: ydl.download([f"https://youtube.com/watch?v={id}"]) except Exception as e: print(e, flush=True) - db.commit() + db.rollback() db.close() return