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 untrusted user: blacklight
GPG key ID: D90FBA7F76362774

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