Skip to content

Commit

Permalink
Fix T&C when carnet:// is not returned.
Browse files Browse the repository at this point in the history
Signed-off-by: Trocotronic <[email protected]>
  • Loading branch information
trocotronic committed Jun 27, 2021
1 parent 34ba2bf commit 94ca5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NativeAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def __force_login(self):

upr = urlparse(r.url)
r = self.__get_url(upr.scheme+'://'+upr.netloc+form_url, post=post)
if ('carnet://' not in r.history[-1].url):
if ('carnet://' not in r.url):
logging.info('No carnet scheme found in response.')
soup = BeautifulSoup(r.text, 'html.parser')
metakits = soup.find_all("meta", {'name':'identitykit'})
Expand Down

0 comments on commit 94ca5cf

Please sign in to comment.