diff --git a/electrum/contacts.py b/electrum/contacts.py index 019d0964d488..c7b06cca918b 100644 --- a/electrum/contacts.py +++ b/electrum/contacts.py @@ -148,6 +148,8 @@ def _resolve_openalias(cls, url: str) -> Optional[Tuple[str, str, bool]]: return None prefix = 'btc' for record in records: + if record.rdtype != dns.rdatatype.TXT: + continue string = to_string(record.strings[0], 'utf8') if string.startswith('oa1:' + prefix): address = cls.find_regex(string, r'recipient_address=([A-Za-z0-9]+)')