diff options
| author | troido <troido@protonmail.com> | 2019-01-18 17:59:45 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2019-01-18 17:59:45 +0100 |
| commit | 01399d4be6f3dacb7c0bed2b84edbbc63331b83e (patch) | |
| tree | b0293a505158c6a537ee75320469cc335de07b89 /asciifarm/client/inputhandler.py | |
| parent | b4cb3cf82337c5a0d560fd77c9a921298b07aa21 (diff) | |
config templates are now actually used
Diffstat (limited to 'asciifarm/client/inputhandler.py')
| -rw-r--r-- | asciifarm/client/inputhandler.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/asciifarm/client/inputhandler.py b/asciifarm/client/inputhandler.py index 8d99c40..850e890 100644 --- a/asciifarm/client/inputhandler.py +++ b/asciifarm/client/inputhandler.py @@ -35,7 +35,10 @@ class InputHandler: else: try: command, _sep, arg = message[1:].partition(' ') - self.commandHandler.execute([command, arg]) + try: + self.commandHandler.execute([command, arg]) + except Exception as e: + self.log(e) except InvalidCommandException as e: self.client.log(", ".join(e.args)) else: |
