FIX: Membership check should be

This commit is contained in:
Mihail Shinder 2021-11-19 10:57:41 +02:00
parent 4e406389cf
commit ee16ffc37d

View File

@ -271,10 +271,8 @@ class CommandViewer(Viewer):
:param options: kwargs that should have 'command' in it :param options: kwargs that should have 'command' in it
""" """
if not "command" in options: if "command" not in options:
raise TypeError( raise TypeError("CommandViewer missing required keyword-only argument 'command'")
"CommandViewer missing required keyword-only argument 'command'"
)
command = options["command"] command = options["command"]
if not isinstance(command, str): if not isinstance(command, str):
raise TypeError(f"'command' must be 'str' not '{type(command)}'") raise TypeError(f"'command' must be 'str' not '{type(command)}'")