Specify default Loader

Not specifyin one is now deprecated behaviour.
This commit is contained in:
Pedro Ferreira 2019-06-12 21:09:48 +02:00
parent b4a3d0cda6
commit 8e4228ede1

View File

@ -17,7 +17,7 @@ def tag(key):
def load_ssb_secret():
"""Load SSB keys from ~/.ssb"""
with open(os.path.expanduser('~/.ssb/secret')) as f:
config = yaml.load(f)
config = yaml.load(f, Loader=yaml.SafeLoader)
if config['curve'] != 'ed25519':
raise ConfigException('Algorithm not known: ' + config['curve'])