py3status
py3status copied to clipboard
moc: fix type mismatch in moc_data
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 astr. -
data, which is adict.
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.