Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def auth():
''' netrc: machine ix.io login USERNAME password TOKEN '''
try:
creds = netrc.netrc().authenticators('ix.io')
except:
except Exception:
return []
if not creds:
return []
Expand Down Expand Up @@ -91,4 +91,4 @@ if __name__ == '__main__':
elif not args:
args = [sys.stdin]
data.extend(mkreq(args))
print urlopen('http://ix.io', urlencode(data)).read().strip()
print urlopen('http://ix.io', urlencode(data)).read().strip()