From d6127832a75aad9b5fa767fc224cdc6beb25c73f Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 1 Oct 2021 13:23:38 +0200 Subject: [PATCH] Use new format for logging exceptions - auth.py (#3177) --- supervisor/auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/supervisor/auth.py b/supervisor/auth.py index 13a8dfc0d..0bfdeb618 100644 --- a/supervisor/auth.py +++ b/supervisor/auth.py @@ -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