s/TimeoutError/AssertionError/ if get_entities_engine times out.

This commit is contained in:
Fabio Manganiello 2023-08-17 02:36:40 +02:00
parent ec2b8da983
commit adfedfa2dd
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ def get_entities_engine(timeout: Optional[float] = None) -> EntitiesEngine:
Event().wait(1)
assert _engine, 'The entities engine has not been initialized'
if not _engine:
raise TimeoutError('The entities engine has not been initialized')
return _engine