Show repl usage on wrong command

master
Jakob 5 years ago
parent 12fd93ce6b
commit 2886f0708e

@ -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

Loading…
Cancel
Save