mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
Use new format for logging exceptions - auth.py (#3177)
This commit is contained in:
parent
8240623806
commit
d6127832a7
@ -64,8 +64,7 @@ class Auth(FileConfiguration, CoreSysAttributes):
|
|||||||
async def check_login(self, addon: Addon, username: str, password: str) -> bool:
|
async def check_login(self, addon: Addon, username: str, password: str) -> bool:
|
||||||
"""Check username login."""
|
"""Check username login."""
|
||||||
if password is None:
|
if password is None:
|
||||||
_LOGGER.error("None as password is not supported!")
|
raise AuthError("None as password is not supported!", _LOGGER.error)
|
||||||
raise AuthError()
|
|
||||||
_LOGGER.info("Auth request from '%s' for '%s'", addon.slug, username)
|
_LOGGER.info("Auth request from '%s' for '%s'", addon.slug, username)
|
||||||
|
|
||||||
# Get from cache
|
# Get from cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user