Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Barry
/
esp8266-Mud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bfcc117a
authored
2018-05-07 01:48:43 -0700
by
Barry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Turned on the error handling in commandhandler
1 parent
4112e223
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
commandhandler.py
commandhandler.py
View file @
bfcc117
...
...
@@ -32,7 +32,7 @@ class CommandHandler(object):
locals
()[
'tokens'
]
=
tokens
locals
()[
'next_command'
]
=
None
#
try:
try
:
if
cmd
in
utils
.
load_object_from_file
(
'rooms/'
+
players
[
id
][
"room"
]
+
'.json'
)
.
get
(
'exits'
):
params
=
cmd
+
" "
+
params
.
lower
()
.
strip
()
cmd
=
"go"
...
...
@@ -51,10 +51,10 @@ class CommandHandler(object):
exec
(
f
.
read
())
del
ldict
return
True
#
except Exception as e:
#
print('Something happened...')
#
print(e)
#
mud.send_message(id, "Unknown command '{}'".format(cmd))
#
return False
except
Exception
as
e
:
print
(
'Something happened...'
)
print
(
e
)
mud
.
send_message
(
id
,
"Unknown command '{}'"
.
format
(
cmd
))
return
False
...
...
Please
register
or
sign in
to post a comment