Permalink
Browse files

Also look in /etc/kip/ for a config file. Fixed a bug in IOError hand…

…ling.
  • Loading branch information...
grahamking committed Oct 26, 2012
1 parent e743652 commit 169c668b1ea4035cc9953ad62c24aa4a819e413d
Showing with 2 additions and 1 deletion.
  1. +2 −1 kip/cli.py
View
@@ -48,6 +48,7 @@
config = configparser.ConfigParser()
config.read(
[
+ "/etc/kip/kip.conf",
os.path.join(os.path.dirname(__file__), "kip.conf"),
os.path.expanduser('~/.kip/kip.conf')
])
@@ -308,7 +309,7 @@ def show(name, is_visible=False):
filename = find(name)
username, password, notes = extract(filename)
except IOError:
- print('File not found: {}'.format(filename))
+ print('File not found: {}'.format(name))
return 1
print(bold(username))

0 comments on commit 169c668

Please sign in to comment.