Skip to content

Commit 9e7a8cb

Browse files
committed
Copy updates from #511
1 parent beb2eda commit 9e7a8cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_init.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ async def smile_status(self, request):
228228
with open(userdata, encoding="utf-8") as filedata:
229229
data = filedata.read()
230230
return aiohttp.web.Response(text=data)
231-
except OSError:
232-
raise aiohttp.web.HTTPNotFound
231+
except OSError as exc:
232+
raise aiohttp.web.HTTPNotFound from exc
233233

234234
@classmethod
235235
async def smile_http_accept(cls, request):
@@ -480,9 +480,9 @@ async def connect_legacy_wrapper(
480480
# await self.connect_legacy(fail_auth=fail_auth)
481481
# _LOGGER.error(" - invalid credentials not handled") # pragma: no cover
482482
# raise self.ConnectError # pragma: no cover
483-
# except pw_exceptions.InvalidAuthentication:
483+
# except pw_exceptions.InvalidAuthentication as exc:
484484
# _LOGGER.info(" + successfully aborted on credentials missing.")
485-
# raise pw_exceptions.InvalidAuthentication
485+
# raise pw_exceptions.InvalidAuthentication from exc
486486

487487
if raise_timeout:
488488
_LOGGER.warning("Connecting to device exceeding timeout in handling:")

0 commit comments

Comments
 (0)