From 0fd6a84632ce03731d2f857f627d8990cd87e4f9 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 20 Sep 2010 18:34:07 -0400 Subject: [PATCH] Use self.error() instead of raise for BooleanRequiredFalseOnWindows. Closes: Sf#3070285 Signed-off-by: James Vega --- src/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log.py b/src/log.py index 82d5c9866..6341fdb01 100644 --- a/src/log.py +++ b/src/log.py @@ -259,11 +259,11 @@ conf.registerGlobalValue(conf.supybot.log, 'timestampFormat', format.""")) class BooleanRequiredFalseOnWindows(registry.Boolean): + """Value cannot be true on Windows""" def set(self, s): registry.Boolean.set(self, s) if self.value and os.name == 'nt': - raise registry.InvalidRegistryValue, \ - 'Value cannot be true on Windows.' + self.error() conf.registerGlobalValue(conf.supybot.log, 'stdout', registry.Boolean(True, """Determines whether the bot will log to