Fix label on address creation

This commit is contained in:
Peter Šurda 2020-05-21 12:56:58 +08:00
parent 33c5d5fc91
commit 0180ddeece
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -36,7 +36,8 @@ class BitmessageAutoresponder(): # pylint: disable=too-many-locals
return
except KeyError:
pass
self.api.createRandomAddress(base64.b64encode(self.label.encode()))
self.api.createRandomAddress(base64.b64encode(
self.label.encode()).decode('ascii'))
def loop(self):
"""Main loop"""