From 03250dcc4750436ce6183418aa4c0eed34947471 Mon Sep 17 00:00:00 2001 From: BelKed <66956532+BelKed@users.noreply.github.com> Date: Tue, 1 Oct 2024 01:02:37 +0200 Subject: [PATCH] Update broken code in `README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1524602..99b2bc1 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ You can log in easily, it works with any school: ```python from edupage_api import Edupage +from edupage_api.exceptions import BadCredentialsException, CaptchaException edupage = Edupage() @@ -26,8 +27,8 @@ try: edupage.login("Username", "Password", "Your school's subdomain") except BadCredentialsException: print("Wrong username or password!") -except LoginDataParsingException: - print("Try again or open an issue!") +except CaptchaException: + print("Captcha required!") ``` # Documentation