py3status icon indicating copy to clipboard operation
py3status copied to clipboard

moc: fix type mismatch in moc_data

Open joanbm opened this issue 7 months ago • 0 comments

moc.py was recently refactored by f648cb607f1c ("py3: add new helper: get_replacements_list"). This causes it to fail when MOC is started, because the code has two variables:

  • moc_data, which is a str.
  • data, which is a dict.

But the refactor accidentally handles moc_data as a dict.

This commit fixes the issue, and unifies data and moc_data, using the same pattern that is already being used in cmus.py.

joanbm avatar May 31 '25 10:05 joanbm