From 05dee37b935ea6221dbeeb165681342dc31ea9ea Mon Sep 17 00:00:00 2001 From: Tomasz Date: Fri, 29 Jan 2021 22:56:01 +0100 Subject: [PATCH] Invalid symbol error --- app/login.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/login.py b/app/login.py index 8e72465..93123bd 100644 --- a/app/login.py +++ b/app/login.py @@ -36,6 +36,9 @@ def send(url, data, fail, diary_url, symbol, s): crtr = s.post(url=wctx, headers={"User-Agent": "Wulkanowy-web :)"}, data={"wa": wa, "wresult": cert, "wctx": wctx}) + if 'nie został zarejestrowany w bazie szkoły, do której się logujesz' in crtr.text: + return {'success': False} + bs = BeautifulSoup(crtr.content, 'html.parser') for a in bs.find_all('a', title='Uczeń'): oun = a['href']