Skip to content
Snippets Groups Projects

Feature: improve examples

Merged Pascal Palenda requested to merge feature/improve-examples into develop
Files
4
@@ -61,6 +61,14 @@ class VAInterface:
self._event_thread = Thread(target=background_event_tread, args=(self._loop,) , daemon=True)
self._event_thread.start()
try:
self._get_state()
except ConnectionError as e:
print(f"Could not connect to VA server. Error: {e}")
print("Please make sure the VA server is running and accessible.")
self.disconnect()
exit(1)
self._connected = True
if add_event_handling:
Loading