Skip to content

Commit

Permalink
YC changed something and checking this header results in a failure ev…
Browse files Browse the repository at this point in the history
…ery time.
  • Loading branch information
nicksergeant committed May 20, 2012
1 parent c18353d commit c4c6865
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hackernews.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ def _login(**kwargs):
}
r = requests.post('https://news.ycombinator.com/y', data=payload)

if 'set-cookie' not in r.headers:
raise BaseException('It looks like you might have an incorrect username/password (got a bad response when logging you in).')

cookies = r.cookies

else:
Expand Down

0 comments on commit c4c6865

Please sign in to comment.