Handle KeyboardInterrupt exception
This commit is contained in:
parent
d3403e7a43
commit
748005b7ea
|
@ -50,7 +50,11 @@ def main():
|
|||
|
||||
util = Util(args.tag, args.chars, args.passwordtype, args.profile)
|
||||
|
||||
master_key = getpass.getpass(prompt='Master Key: ')
|
||||
try:
|
||||
master_key = getpass.getpass(prompt='Master Key: ')
|
||||
except KeyboardInterrupt:
|
||||
print "^C"
|
||||
raise SystemExit(0)
|
||||
|
||||
twik = Twik()
|
||||
password = twik.getpassword(args.tag, util.get_privatekey(), master_key,
|
||||
|
|
Loading…
Reference in New Issue