forked from platypush/platypush
s/TimeoutError/AssertionError/ if get_entities_engine times out.
This commit is contained in:
parent
ec2b8da983
commit
adfedfa2dd
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ def get_entities_engine(timeout: Optional[float] = None) -> EntitiesEngine:
|
||||||
|
|
||||||
Event().wait(1)
|
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
|
return _engine
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue