diff --git a/app/musicmuster.py b/app/musicmuster.py index 8e66d10..58b1dea 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -883,12 +883,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"""