mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix authenticating bug
This commit is contained in:
parent
95646b0b29
commit
cf9d43fe84
@ -147,6 +147,7 @@ class ShibbolethAuthenticator:
|
|||||||
logger.info("Not logged in, authentication required.")
|
logger.info("Not logged in, authentication required.")
|
||||||
await self._authenticate()
|
await self._authenticate()
|
||||||
self._event.set()
|
self._event.set()
|
||||||
|
self._event = None
|
||||||
else:
|
else:
|
||||||
await self._event.wait()
|
await self._event.wait()
|
||||||
|
|
||||||
@ -160,7 +161,7 @@ class ShibbolethAuthenticator:
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
async with self._lock.read():
|
async with self._lock.read():
|
||||||
logger.info(f"Getting {url} {params}")
|
logger.debug(f"Getting {url} {params}")
|
||||||
_, text = await self._get(url, params=params)
|
_, text = await self._get(url, params=params)
|
||||||
soup = bs4.BeautifulSoup(text, "html.parser")
|
soup = bs4.BeautifulSoup(text, "html.parser")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user