Skip to content

Commit

Permalink
add debug logging to platform setup (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkywafer committed Jul 8, 2021
1 parent 06bf639 commit cdc9f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/youtube/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ async def async_setup_platform(
response = await session.get(url)
info = await response.text()
name = info.split('<title>')[1].split('</')[0]
except Exception: # pylint: disable=broad-except

except Exception as error: # pylint: disable=broad-except
_LOGGER.debug('Unable to set up - %s', error)
name = None

if name is not None:
Expand Down

0 comments on commit cdc9f03

Please sign in to comment.