Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'dict' object has no attribute 'replace' #19

Open
LennyPhoenix opened this issue May 4, 2024 · 0 comments
Open

'dict' object has no attribute 'replace' #19

LennyPhoenix opened this issue May 4, 2024 · 0 comments

Comments

@LennyPhoenix
Copy link

Running rofi-mpd -w or with -g crashes with the following error:

~
❯ rofi-mpd -w
Traceback (most recent call last):
  File "/usr/bin/rofi-mpd", line 3, in <module>
    rofi_mpd.run()
  File "/usr/lib/python3.12/site-packages/rofi_mpd/rofi_mpd.py", line 244, in run
    tracks = get_tracks(client, rofi)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/rofi_mpd/rofi_mpd.py", line 200, in get_tracks
    artist = select_artist(artists, rofi)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/rofi_mpd/rofi_mpd.py", line 54, in select_artist
    index = select(artists, 'Select artist', rofi)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/rofi_mpd/rofi_mpd.py", line 40, in select
    index, key = rofi.select(prompt, data, select=select)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/rofi/rofi.py", line 390, in select
    optionstr = '\n'.join(option.replace('\n', ' ') for option in options)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/rofi/rofi.py", line 390, in <genexpr>
    optionstr = '\n'.join(option.replace('\n', ' ') for option in options)
                          ^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'replace'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant