dont commit on error

master
Aevann 2023-02-17 16:49:23 +02:00
parent fa836ee549
commit 8537dfbf21
1 changed files with 1 additions and 1 deletions

View File

@ -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