mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +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:
|
||||
"""Check username login."""
|
||||
if password is None:
|
||||
_LOGGER.error("None as password is not supported!")
|
||||
raise AuthError()
|
||||
raise AuthError("None as password is not supported!", _LOGGER.error)
|
||||
_LOGGER.info("Auth request from '%s' for '%s'", addon.slug, username)
|
||||
|
||||
# Get from cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user