Don't show tracebacks to players.

Make sure that the traceback is in the log.
This commit is contained in:
Ahmed Charles 2015-11-09 11:14:15 +00:00 committed by Griatch
parent 39e40bfba1
commit d3e218e439

View file

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