1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 07:10:09 -07:00

Print error message to stderr (#66)

This commit is contained in:
Adrian Sampson 2020-01-11 11:43:48 -05:00
parent a1cd9795c6
commit c5fb01e7cc

View File

@ -161,7 +161,8 @@ def example_command(client, cmd, args):
func = EXAMPLE_COMMANDS.get(cmd)
if not func:
print("Invalid command: '{}'.\n"
"Use one of: {}".format(cmd, ', '.join(EXAMPLE_COMMANDS)))
"Use one of: {}".format(cmd, ', '.join(EXAMPLE_COMMANDS)),
file=sys.stderr)
return
func(client, *args)