Use builtin TimeoutError [core + helpers] (#109684)
This commit is contained in:
parent
a9147cf3dd
commit
cd0ee98dba
19 changed files with 70 additions and 74 deletions
|
@ -665,7 +665,7 @@ class Template:
|
|||
await finish_event.wait()
|
||||
if self._exc_info:
|
||||
raise TemplateError(self._exc_info[1].with_traceback(self._exc_info[2]))
|
||||
except asyncio.TimeoutError:
|
||||
except TimeoutError:
|
||||
template_render_thread.raise_exc(TimeoutError)
|
||||
return True
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue