Skip to content

Commit

Permalink
Fix login bug
Browse files Browse the repository at this point in the history
The same as the last: If the protocol is included in the link, there will be an error
  • Loading branch information
Ralph Embree authored Nov 19, 2016
1 parent 221c29e commit 81a6518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatexchange/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _load_user(self, soup):
@staticmethod
def user_id_and_name_from_link(link_soup):
user_name = link_soup.text
user_id = int(link_soup['href'].split('/')[2])
user_id = int(link_soup['href'].split('/')[-2])
return user_id, user_name

def _update_chat_fkey_and_user(self):
Expand Down

0 comments on commit 81a6518

Please sign in to comment.