Skip to content

Conversation

@skwort
Copy link

@skwort skwort commented Feb 22, 2025

This commit fixes KeyErrors in the dump-config logic, which were caused by a mismatch between the Sonarr API response and the current release profile data model. Specifically I believe this fixes Sonarr issue #51.

In particular, a KeyError was triggered by sonarr dump-config when accessing the preferred and includePreferredWhenRenaming keys in config/release.py::_get_remote_map().

Removing these fields from the remote map fixes the issue. See Buildarr issue #219 for more details on the Fix.

This commit fixes KeyErrors in the dump-config logic, which were
caused by a mismatch between the Sonarr API response and the current
release profile data model.

In particular, a KeyError was triggered by `sonarr dump-config`
when accessing the `preferred` and `includePreferredWhenRenaming`
keys in `config/release.py::_get_remote_map()`.

Removing these fields from the remote map fixes the issue. See
Buildarr [#219](buildarr/buildarr#219)
for more details.
@skwort
Copy link
Author

skwort commented Feb 22, 2025

Probably need to update pdm.lock to get this to pass CI.

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.

1 participant