Skip to content

moc: fix type mismatch in moc_data #2288

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joanbm
Copy link
Contributor

@joanbm joanbm commented May 31, 2025

moc.py was recently refactored by f648cb6 ("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.

moc.py was recently refactored by f648cb6 ("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.
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

Successfully merging this pull request may close these issues.

2 participants