Fix missing key filename in load error message

pull/2/head
Christophe Mehay 5 years ago
parent 6fa9b65221
commit 7c03eaec6a

@ -85,7 +85,10 @@ class Onion(ABC):
)
if self._priv_key_filename not in os.listdir(path):
raise EmptyDirException(
'private_key file not found in {path}'.format(path=path)
'{key} file not found in {path}'.format(
key=self._priv_key_filename,
path=path
)
)
with open(os.path.join(path, self._priv_key_filename), 'rb') as f:
self.set_private_key_from_file(f)

Loading…
Cancel
Save