File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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:" )
You can’t perform that action at this time.
0 commit comments