grahamking / kip

Command line script to keep usernames/passwords in gnupg encrypted text files.
GNU General Public License v3.0
23 stars 6 forks source link

Exception if edit used with non-existent entry #22

Closed unbracketed closed 11 years ago

unbracketed commented 11 years ago
~/.kip  ᐅ kip edit nonexistent-secret --notes "hi"
Traceback (most recent call last):
  File "/usr/local/share/python/kip", line 9, in <module>
    load_entry_point('kip==0.3.0', 'console_scripts', 'kip')()
  File "/Users/brian/code/kip/kip/cli.py", line 104, in main
    retcode = CMDS[args.cmd](args)
  File "/Users/brian/code/kip/kip/cli.py", line 156, in cmd_edit
    print('File not found: {}'.format(filename))
UnboundLocalError: local variable 'filename' referenced before assignment
grahamking commented 11 years ago

Fixed by 8594ca350a2de912019b72bb9c30397e17fba9a6