Skip to content

Commit

Permalink
Add logging to NYT Games setup failures (#126832)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Sep 26, 2024
1 parent 2a0ad20 commit ae102f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/nyt_games/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from homeassistant.const import CONF_TOKEN
from homeassistant.helpers.aiohttp_client import async_get_clientsession

from .const import DOMAIN
from .const import DOMAIN, LOGGER


class NYTGamesConfigFlow(ConfigFlow, domain=DOMAIN):
Expand All @@ -30,6 +30,7 @@ async def async_step_user(
except NYTGamesError:
errors["base"] = "cannot_connect"
except Exception: # noqa: BLE001
LOGGER.exception("Unexpected error")
errors["base"] = "unknown"
else:
await self.async_set_unique_id(str(user_id))
Expand Down

0 comments on commit ae102f1

Please sign in to comment.