Get a user by e-mail. :param user_email: E-mail of the user to retrieve. :raises UserNotExists: The user does not exist. :return: A user of type models.UP.
(self, user_email: str)
| 77 | return user |
| 78 | |
| 79 | async def get_by_email(self, user_email: str) -> models.UP: |
| 80 | """ |
| 81 | Get a user by e-mail. |
| 82 | |
| 83 | :param user_email: E-mail of the user to retrieve. |
| 84 | :raises UserNotExists: The user does not exist. |
| 85 | :return: A user of type models.UP. |
| 86 | """ |
| 87 | user = await self.user_db.get_by_email(user_email) |
| 88 | |
| 89 | if user is None: |
| 90 | raise exceptions.UserNotExists() |
| 91 | |
| 92 | return user |
| 93 | |
| 94 | async def get_by_oauth_account(self, oauth: str, account_id: str) -> models.UP: |
| 95 | """ |
no outgoing calls
no test coverage detected