Use builtin TimeoutError [core + helpers] (#109684)
This commit is contained in:
parent
a9147cf3dd
commit
cd0ee98dba
19 changed files with 70 additions and 74 deletions
|
@ -542,7 +542,7 @@ class ServiceIntentHandler(IntentHandler):
|
|||
"""
|
||||
try:
|
||||
await asyncio.wait({task}, timeout=self.service_timeout)
|
||||
except asyncio.TimeoutError:
|
||||
except TimeoutError:
|
||||
pass
|
||||
except asyncio.CancelledError:
|
||||
# Task calling us was cancelled, so cancel service call task, and wait for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue