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

Fix repeaterbook query loading #1275

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion chirp/wxui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,15 @@ def get_for_radio(radio):
rclass = radio
else:
rclass = radio.__class__
registered_id = directory.registered_class(rclass)
try:
registered_id = directory.registered_class(rclass)
except KeyError:
# Network sources and any other special cases where a radio is not
# registered. Try to get a driver id if possible, otherwise combine
# into a single config blob
try:
registered_id = directory.radio_class_id(rclass)
except Exception:
LOG.warning('Unable to get radio-specific config for %s', rclass)
registered_id = 'other'
return get(section='radio_%s' % registered_id)
1 change: 1 addition & 0 deletions chirp/wxui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,7 @@ def _menu_select_bandplan(self, event):
for shortname, name in plans:
CONF.set_bool(shortname, shortname == selected, 'bandplan')

@common.error_proof()
def _do_network_query(self, query_cls):
self.enable_bugreport()
d = query_cls(self, title=_('Query %s') % query_cls.NAME)
Expand Down