From 0d99297aeec97af01ea8e9be1a2e4304ef8e7219 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Fri, 27 Feb 2015 17:59:37 +0100 Subject: [PATCH] Rename PASTEBIN_ERRORS to PASTEBIN_TRACEBACKS For clarity and because it sounds better. --- botconfig.py.example | 4 ++-- modules/common.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/botconfig.py.example b/botconfig.py.example index 914e978..e1375c9 100644 --- a/botconfig.py.example +++ b/botconfig.py.example @@ -33,5 +33,5 @@ USE_UTC = True # if True, will use the UTC time, else the local time # %Y is the year with century, %y is the year without, %m is the month, %d the day, %H hour, %M minute and %S seconds TIMESTAMP_FORMAT = "[%Y-%m-%d %H:%M:%S{tzoffset}]" -# If enabled, when there's an error, the bot will post it to termbin.com and post the link to the channel. -PASTEBIN_ERRORS = True +# If enabled, when an exception is caught, the bot will post it to termbin.com and post the link to the channel. +PASTEBIN_TRACEBACKS = True diff --git a/modules/common.py b/modules/common.py index ba5412b..54ff1b9 100644 --- a/modules/common.py +++ b/modules/common.py @@ -15,7 +15,7 @@ alog = logger(None) def pastebin(s): - if not botconfig.PASTEBIN_ERRORS: + if not botconfig.PASTEBIN_TRACEBACK: return try: