INNER CODE UNIT · Python
_load_command_capabilities
unrealcv/unrealcv · client/python/unrealcv/__init__.py:228
def _load_command_capabilities(self):
self._command_capabilities_checked = True
try:
response = self._request_without_capability_check(
'vget /unrealcv/commands'
)
except (ConnectionError, TimeoutError):
self._warn_command_capabilities_unavailable()
return
if isinstance(response, bytes):
response = response.decode('utf-8', errors='replace')
if not isinstance(response, str) or response.lstrip().lower().startswith('error'):
self._warn_command_capabilities_unavailable()
return
templates = tuple(
self._normalize_command_whitespace(line)