Browse Source

"An error has occured" -> "An error has occured and has been logged"

master
jcao219 14 years ago
parent
commit
c313f1f977
  1. 4
      wolfbot.py

4
wolfbot.py

@ -40,7 +40,7 @@ def on_privmsg(cli, rawnick, chan, msg): @@ -40,7 +40,7 @@ def on_privmsg(cli, rawnick, chan, msg):
raise e
else:
logging.error(traceback.format_exc())
cli.msg(chan, "An error has occurred.")
cli.msg(chan, "An error has occurred and has been logged.")
else:
for x in wolfgame.PM_COMMANDS.keys():
if msg.lower().startswith(botconfig.CMD_CHAR+x):
@ -58,7 +58,7 @@ def on_privmsg(cli, rawnick, chan, msg): @@ -58,7 +58,7 @@ def on_privmsg(cli, rawnick, chan, msg):
raise e
else:
logging.error(traceback.format_exc())
cli.msg(chan, "An error has occurred.")
cli.msg(chan, "An error has occurred and has been logged.")
def __unhandled__(cli, prefix, cmd, *args):
if cmd in wolfgame.HOOKS.keys():

Loading…
Cancel
Save