From d3e218e439c27628ab88015b0ffe1e6f21c65917 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Mon, 9 Nov 2015 11:14:15 +0000 Subject: [PATCH] Don't show tracebacks to players. Make sure that the traceback is in the log. --- evennia/commands/default/batchprocess.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/evennia/commands/default/batchprocess.py b/evennia/commands/default/batchprocess.py index 8a01a73c4..7f8e8469c 100644 --- a/evennia/commands/default/batchprocess.py +++ b/evennia/commands/default/batchprocess.py @@ -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