Merge pull request #2 from cmehay/travis

Fix missing key filename in load error message
master
Christophe Mehay 5 years ago committed by GitHub
commit 42ce13aa02

@ -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)

@ -6,7 +6,7 @@ from setuptools import setup
setup(
name='pytor',
version='0.1.2-1',
version='0.1.3',
packages=find_packages(),

Loading…
Cancel
Save