Remove check for length of tuple in encrypt_key

pull/20/head
tuxxy 2017-09-01 13:27:44 -06:00
parent 041b81a6df
commit e16d11ff32
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class Client(object):
path_pubkey = self._derive_path_key(subpath)
enc_keys.append(self.encrypt_key(key, pubkey=path_pubkey))
return enc_keys
elif len(path) == 1 or type(path) is str:
elif type(path) is str:
return self.encrypt_key(key, pubkey=self._derive_path_key(path))
elif not path:
return self._pre.encrypt(pubkey, key)