Error creating/saving playlist #240

Closed
opened 2024-05-03 09:12:12 +01:00 by kae · 1 comment
Owner
File "/home/kae/mm/./app/musicmuster.py", line 1049, in open_playlist
    1037  def open_playlist(self) -> None:
 (...)
    1045          if playlist:
    1046              idx = self.create_playlist_tab(playlist)
    1047              playlist.mark_open()
    1048  
--> 1049      self.tabPlaylist.setCurrentIndex(idx)
    ..................................................
     self = <__main__.Window object at 0x7f1b253b1ab0>
     playlist = None
     self.create_playlist_tab = <method 'Window.create_playlist_tab' of <__main__.Window obj
                                 ect at 0x7f1b253b1ab0> musicmuster.py:599>
     playlist.mark_open = # AttributeError
          playlist = None
    ..................................................

UnboundLocalError: cannot access local variable 'idx' where it is not associated with a value
``` File "/home/kae/mm/./app/musicmuster.py", line 1049, in open_playlist 1037 def open_playlist(self) -> None: (...) 1045 if playlist: 1046 idx = self.create_playlist_tab(playlist) 1047 playlist.mark_open() 1048 --> 1049 self.tabPlaylist.setCurrentIndex(idx) .................................................. self = <__main__.Window object at 0x7f1b253b1ab0> playlist = None self.create_playlist_tab = <method 'Window.create_playlist_tab' of <__main__.Window obj ect at 0x7f1b253b1ab0> musicmuster.py:599> playlist.mark_open = # AttributeError playlist = None .................................................. UnboundLocalError: cannot access local variable 'idx' where it is not associated with a value ```
kae added the
bug
label 2024-05-03 09:12:12 +01:00
Author
Owner

Fixed in 6aa09bf

Fixed in 6aa09bf
kae closed this issue 2024-05-04 20:36:16 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kae/musicmuster#240
No description provided.