Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
eevel committed Oct 25, 2022
1 parent fe41d1e commit 52c910e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/twisted/conch/scripts/ckeygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ def printFingerprint(options):
def changePassPhrase(options):
if not options["filename"]:
filename = os.path.expanduser("~/.ssh/id_rsa")
user_input = input("Enter file in which the key is (%s): " % filename)
options["filename"] = user_input or filename
try:
options["filename"] = input("Enter file in which the key is (%s): " % filename)
except EOFError:
options["filename"] = filename
try:
key = keys.Key.fromFile(options["filename"])
except keys.EncryptedKeyError:
Expand Down

0 comments on commit 52c910e

Please sign in to comment.