Skip to content

Commit

Permalink
fix: catch KeyError for last_called
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 27, 2019
1 parent 3234749 commit 5db0706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/media_player.py
Expand Up @@ -431,7 +431,7 @@ async def _get_last_called(self):
[self._login.email]
['last_called']
['serialNumber']))
except TypeError:
except (TypeError, KeyError):
last_called_serial = None
_LOGGER.debug("%s: Last_called check: self: %s reported: %s",
self._device_name,
Expand Down

0 comments on commit 5db0706

Please sign in to comment.