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

Wrap error message to 79 characters

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

View File

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