mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
fix base exception shadowing exception
This commit is contained in:
parent
16073c934c
commit
3df62326e5
@ -1096,10 +1096,10 @@ class PingStatus:
|
|||||||
return_exceptions=True,
|
return_exceptions=True,
|
||||||
)
|
)
|
||||||
for entry, result in zip(ping_group, results):
|
for entry, result in zip(ping_group, results):
|
||||||
if isinstance(result, BaseException):
|
|
||||||
raise result
|
|
||||||
if isinstance(result, Exception):
|
if isinstance(result, Exception):
|
||||||
result = False
|
result = False
|
||||||
|
elif isinstance(result, BaseException):
|
||||||
|
raise result
|
||||||
PING_RESULT[entry.filename] = result
|
PING_RESULT[entry.filename] = result
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user