Skip to content

Commit 42a46f5

Browse files
committed
Revert adding try-except
1 parent 5de2b92 commit 42a46f5

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

plugwise_usb/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,7 @@ async def plus_pair_request(self, mac: str) -> bool:
273273
@raise_not_connected
274274
async def initialize(self, create_root_cache_folder: bool = False) -> None:
275275
"""Initialize connection to USB-Stick."""
276-
try:
277-
await self._controller.initialize_stick()
278-
except StickError as exc:
279-
_LOGGER.warning("Cannot initialize Stick-connection: %s", exc)
280-
raise StickError(f"Cannot initialize Stick-connection: {exc}") from exc
281-
276+
await self._controller.initialize_stick()
282277
if self._network is None:
283278
self._network = StickNetwork(self._controller)
284279
self._network.cache_folder = self._cache_folder

0 commit comments

Comments
 (0)