diff --git a/src/cfclient/ui/main.py b/src/cfclient/ui/main.py index 2982d824cf..b738fc87e7 100644 --- a/src/cfclient/ui/main.py +++ b/src/cfclient/ui/main.py @@ -361,8 +361,9 @@ def _set_address(self): address = 0xE7E7E7E7E7 try: link_uri = Config().get("link_uri") - if len(link_uri) > 0: - address = int(link_uri.split('/')[-1], 16) + if link_uri.startswith("radio://"): + if len(link_uri) > 0: + address = int(link_uri.split('/')[-1], 16) except Exception as err: logger.warn('failed to parse address from config: %s' % str(err)) finally: