Don't show tracebacks to players.
Make sure that the traceback is in the log.
This commit is contained in:
parent
39e40bfba1
commit
d3e218e439
1 changed files with 2 additions and 3 deletions
|
|
@ -19,12 +19,11 @@ therefore always be limited to superusers only.
|
|||
"""
|
||||
from builtins import range
|
||||
|
||||
from traceback import format_exc
|
||||
from django.conf import settings
|
||||
from evennia.utils.batchprocessors import BATCHCMD, BATCHCODE
|
||||
from evennia.commands.cmdset import CmdSet
|
||||
from evennia.commands.default.muxcommand import MuxCommand
|
||||
from evennia.utils import utils
|
||||
from evennia.utils import logger, utils
|
||||
|
||||
# limit symbols for API inclusion
|
||||
__all__ = ("CmdBatchCommands", "CmdBatchCode")
|
||||
|
|
@ -120,7 +119,7 @@ def batch_cmd_exec(caller):
|
|||
try:
|
||||
caller.execute_cmd(command)
|
||||
except Exception:
|
||||
caller.msg(format_code(format_exc()))
|
||||
logger.log_trace()
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue