From 8bc41f2fcdf11a27fd7291ee0f352340b7fdf4d9 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Wed, 3 Jul 2024 13:50:40 +0100 Subject: [PATCH] Fix error message --- app/musicmuster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/musicmuster.py b/app/musicmuster.py index e3193ab..f0265b1 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -876,12 +876,12 @@ class Window(QMainWindow, Ui_MainWindow): # Need to ensure that the new playlist is committed to # the database before it is opened by the model. - session.commit() if playlist: - log.error("Playlist failed to create") playlist.mark_open() self.create_playlist_tab(playlist) + else: + log.error("Playlist failed to create") def open_playlist(self) -> None: """Open existing playlist"""