We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 533107b commit 844647fCopy full SHA for 844647f
src/batou/secrets/encryption.py
@@ -277,7 +277,7 @@ def load(id_path):
277
key_content = f.read()
278
try:
279
priv_key = serialization.load_ssh_private_key(key_content, None)
280
- except ValueError:
+ except (ValueError, TypeError):
281
passphrase = get_passphrase(id_path).encode("utf-8")
282
priv_key = serialization.load_ssh_private_key(
283
key_content,
0 commit comments