1
0

show alias satus in gui after fetch

This commit is contained in:
ThomasV
2015-07-11 18:14:00 +02:00
parent 2e6aa9067f
commit 35aba0c14b
4 changed files with 34 additions and 10 deletions

View File

@@ -40,7 +40,10 @@ class Contacts(StoreDict):
def resolve_openalias(self, url):
# support email-style addresses, per the OA standard
url = url.replace('@', '.')
records, validated = dnssec.query(url, dns.rdatatype.TXT)
try:
records, validated = dnssec.query(url, dns.rdatatype.TXT)
except:
return
prefix = 'btc'
for record in records:
string = record.strings[0]