commit 0c2547543d69a0d9758f9687cb1c00c3569f5926
parent f90c0d73dbd0b20804a4aaffcddb9a65aa78686e
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 6 Mar 2018 16:08:49 +0100
fix openalias py3
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/contacts.py b/lib/contacts.py
@@ -29,7 +29,7 @@ import sys
from . import bitcoin
from . import dnssec
-from .util import export_meta, import_meta, print_error
+from .util import export_meta, import_meta, print_error, to_string
class Contacts(dict):
@@ -104,7 +104,7 @@ class Contacts(dict):
return None
prefix = 'btc'
for record in records:
- string = record.strings[0]
+ string = to_string(record.strings[0], 'utf8')
if string.startswith('oa1:' + prefix):
address = self.find_regex(string, r'recipient_address=([A-Za-z0-9]+)')
name = self.find_regex(string, r'recipient_name=([^;]+)')