Skip to content

Commit ae102f1

Browse files
authored
Add logging to NYT Games setup failures (#126832)
1 parent 2a0ad20 commit ae102f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

homeassistant/components/nyt_games/config_flow.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from homeassistant.const import CONF_TOKEN
1010
from homeassistant.helpers.aiohttp_client import async_get_clientsession
1111

12-
from .const import DOMAIN
12+
from .const import DOMAIN, LOGGER
1313

1414

1515
class NYTGamesConfigFlow(ConfigFlow, domain=DOMAIN):
@@ -30,6 +30,7 @@ async def async_step_user(
3030
except NYTGamesError:
3131
errors["base"] = "cannot_connect"
3232
except Exception: # noqa: BLE001
33+
LOGGER.exception("Unexpected error")
3334
errors["base"] = "unknown"
3435
else:
3536
await self.async_set_unique_id(str(user_id))

0 commit comments

Comments
 (0)