From cf9d43fe8474f2de883c5e61df54e0a0a748b475 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 21 Nov 2018 06:59:34 +0000 Subject: [PATCH] Fix authenticating bug --- PFERD/authenticator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PFERD/authenticator.py b/PFERD/authenticator.py index 3876976..42b230b 100644 --- a/PFERD/authenticator.py +++ b/PFERD/authenticator.py @@ -147,6 +147,7 @@ class ShibbolethAuthenticator: logger.info("Not logged in, authentication required.") await self._authenticate() self._event.set() + self._event = None else: await self._event.wait() @@ -160,7 +161,7 @@ class ShibbolethAuthenticator: while True: async with self._lock.read(): - logger.info(f"Getting {url} {params}") + logger.debug(f"Getting {url} {params}") _, text = await self._get(url, params=params) soup = bs4.BeautifulSoup(text, "html.parser")