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