Show repl usage on wrong command
This commit is contained in:
parent
12fd93ce6b
commit
2886f0708e
|
@ -51,7 +51,11 @@ class AtmoClientHandler(socketserver.StreamRequestHandler):
|
||||||
self.send("Bye")
|
self.send("Bye")
|
||||||
else:
|
else:
|
||||||
raise CommandNotFound(cmd)
|
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))
|
self.send("Error: {}".format(e))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue