diff --git a/apps/common/utils/encode.py b/apps/common/utils/encode.py index 6f34d65e0..a50493d81 100644 --- a/apps/common/utils/encode.py +++ b/apps/common/utils/encode.py @@ -173,6 +173,8 @@ def _parse_ssh_private_key(text, password=None): dsa.DSAPrivateKey, ed25519.Ed25519PrivateKey, """ + if not bool(password): + password = None if isinstance(text, str): try: text = text.encode("utf-8")