Catch additional exception for Plex account login failures (#37143)

This commit is contained in:
jjlawren authored and GitHub committed 2020-06-26 10:30:44 -07:00
1 parent 7d74b74570
commit fe5bf96e5d
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ async def async_setup_entry(hass, entry):
def get_plex_account(plex_server):
try:
return plex_server.account
except plexapi.exceptions.Unauthorized:
except (plexapi.exceptions.BadRequest, plexapi.exceptions.Unauthorized):
return None
plex_account = await hass.async_add_executor_job(get_plex_account, plex_server)