Merge pull request #8 from bozakov/patch-1

Handle KeyboardInterrupt exception
This commit is contained in:
Alexandre Possebom 2016-06-10 10:07:10 -03:00 committed by GitHub
commit 432c3359c1
1 changed files with 5 additions and 1 deletions

View File

@ -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,