Skip to content

Commit

Permalink
Display error dialog if python3-suds is not installed when querying RR
Browse files Browse the repository at this point in the history
  • Loading branch information
ajraymond committed May 24, 2024
1 parent e17c021 commit 9bb544c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chirp/wxui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import typing
import webbrowser

from chirp.sources import radioreference

import wx
import wx.aui
Expand Down Expand Up @@ -1835,7 +1836,11 @@ def _do_network_query(self, query_cls):
self.add_editorset(editorset)

def _menu_query_rr(self, event):
self._do_network_query(query_sources.RRQueryDialog)
if radioreference.HAVE_SUDS:
self._do_network_query(query_sources.RRQueryDialog)
else:
common.error_proof.show_error(
_("The python3-suds package is required to query this source."))

def _menu_query_rb(self, event):
self._do_network_query(query_sources.RepeaterBookQueryDialog)
Expand Down

0 comments on commit 9bb544c

Please sign in to comment.