From a798d17e1075a0cfaf7bef2f181ab876bb7959b3 Mon Sep 17 00:00:00 2001 From: Christophe Mehay Date: Tue, 3 Dec 2019 09:17:15 +0100 Subject: [PATCH] Fix type error for private key loading --- assets/onions/onions/Service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/onions/onions/Service.py b/assets/onions/onions/Service.py index 30638fe..af04d74 100644 --- a/assets/onions/onions/Service.py +++ b/assets/onions/onions/Service.py @@ -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