Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
Expand exception
Browse files Browse the repository at this point in the history
except (KeyError, IndexError, TypeError):
  • Loading branch information
ColinRobbins authored Oct 12, 2021
1 parent 0a96eb8 commit 6cbdc91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hildebrandglow_dcc/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def state(self) -> Optional[str]:
standing = standing / 100
return standing

except KeyError:
except (KeyError, IndexError, TypeError):
if plan is None:
_LOGGER.error("Lookup Error - plan (%s)", self._state)
else:
Expand Down

0 comments on commit 6cbdc91

Please sign in to comment.