dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit b2b815f6ff6314883fa2dad8a1fb273ffbb951db
parent 81e60f93b62a9438eaf3124a5b707ad8f10a3646
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon, 19 Feb 2018 21:25:45 -0500

Fix my-netrc for broader compatability

Diffstat:
M.local/bin/my-netrc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/my-netrc b/.local/bin/my-netrc @@ -10,8 +10,8 @@ import sys def parse_netrc(host, token=None): try: authenticators = netrc.netrc().authenticators(host) - except FileNotFoundError: - exit('my-netrc: You don\'t have a netrc file!') + except Exception as error: + exit(str(error)) if authenticators is None: exit('my-netrc: ' + host + ' not found') elif token == 'login':