Skip to content

Commit

Permalink
Update broken code in `README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BelKed committed Sep 30, 2024
1 parent 3538c80 commit 03250dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ 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()

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
Expand Down

0 comments on commit 03250dc

Please sign in to comment.