Show repl usage on wrong command

This commit is contained in:
Jakob 2019-08-21 12:33:01 +02:00
parent 12fd93ce6b
commit 2886f0708e
1 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,11 @@ class AtmoClientHandler(socketserver.StreamRequestHandler):
self.send("Bye")
else:
raise CommandNotFound(cmd)
except (CommandNotFound, WrongArgumentCount) as e:
except CommandNotFound as e:
self.send("Error: {}".format(e))
self.send("The following commands are available: ")
self.send(" reload")
except WrongArgumentCount as e:
self.send("Error: {}".format(e))
@staticmethod