Specify default Loader
Not specifyin one is now deprecated behaviour.
This commit is contained in:
parent
b4a3d0cda6
commit
8e4228ede1
@ -17,7 +17,7 @@ def tag(key):
|
|||||||
def load_ssb_secret():
|
def load_ssb_secret():
|
||||||
"""Load SSB keys from ~/.ssb"""
|
"""Load SSB keys from ~/.ssb"""
|
||||||
with open(os.path.expanduser('~/.ssb/secret')) as f:
|
with open(os.path.expanduser('~/.ssb/secret')) as f:
|
||||||
config = yaml.load(f)
|
config = yaml.load(f, Loader=yaml.SafeLoader)
|
||||||
|
|
||||||
if config['curve'] != 'ed25519':
|
if config['curve'] != 'ed25519':
|
||||||
raise ConfigException('Algorithm not known: ' + config['curve'])
|
raise ConfigException('Algorithm not known: ' + config['curve'])
|
||||||
|
Loading…
Reference in New Issue
Block a user