INNER CODE UNIT · Python
_warn_if_command_maybe_unsupported
unrealcv/unrealcv · client/python/unrealcv/__init__.py:199
def _warn_if_command_maybe_unsupported(self, message):
if not self._command_capabilities_available:
return
if any(
self._matches_command_template(message, template)
for template in self._supported_command_templates
):
return
normalized = self._normalize_command_whitespace(message)
warnings.warn(
f"The connected UnrealCV server may not support command '{normalized}'. "
'The request will still be sent.',
UserWarning,
stacklevel=3,
)
def _warn_command_capabilities_unavailable(self):