mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Some further fixes.
This commit is contained in:
parent
e345d659fd
commit
4dea96f5e4
4 changed files with 20 additions and 4 deletions
|
|
@ -156,7 +156,11 @@ class CmdPy(MuxCommand):
|
|||
'ev':ev,
|
||||
'inherits_from':utils.inherits_from}
|
||||
|
||||
caller.msg(">>> %s" % pycode, data={"raw":True}, sessid=self.sessid)
|
||||
try:
|
||||
caller.msg(">>> %s" % pycode, data={"raw":True}, sessid=self.sessid)
|
||||
except TypeError:
|
||||
caller.msg(">>> %s" % pycode, data={"raw":True})
|
||||
|
||||
|
||||
mode = "eval"
|
||||
try:
|
||||
|
|
@ -185,7 +189,11 @@ class CmdPy(MuxCommand):
|
|||
ret = "\n".join("{n<<< %s" % line for line in errlist if line)
|
||||
|
||||
if ret != None:
|
||||
caller.msg(ret, sessid=self.sessid)
|
||||
try:
|
||||
caller.msg(ret, sessid=self.sessid)
|
||||
except TypeError:
|
||||
caller.msg(ret)
|
||||
|
||||
|
||||
# helper function. Kept outside so it can be imported and run
|
||||
# by other commands.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue