Fix type error for private key loading

pull/67/head
Christophe Mehay 5 years ago committed by Christophe Mehay
parent a3c5d6d066
commit a798d17e10

@ -83,6 +83,8 @@ class ServicesGroup(object):
key = base64.b64decode(key)
except binascii.Error:
pass
if isinstance(key, str):
key = key.encode('ascii')
self._onion.set_private_key(key)
self.imported_key = True

Loading…
Cancel
Save