Skip to content

Commit

Permalink
Fix exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Aug 20, 2019
1 parent 4eeed61 commit 24e7e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/resolvbus/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def async_update(self):
elif self._ttyPort is not None:
buffer = await self.async_readFromSerial(self._ttyPort, self._filterSource, self._filterDestination, self._filterCommand)
self.process_buffer(buffer)
except VBUSPacketException as e:
except Exception as e:
_LOGGER.error("Update failed: %s" % e)

async def async_readFromSerial(self, port, source=None, destination=None, command=None):
Expand Down

0 comments on commit 24e7e52

Please sign in to comment.