src/log.py: Fix a NameError in a Windows specific section of the code.

This commit is contained in:
James Vega 2006-05-05 02:13:41 +00:00
parent a64f4e445b
commit 514ddbc74f

View File

@ -233,7 +233,8 @@ class BooleanRequiredFalseOnWindows(registry.Boolean):
def set(self, s):
registry.Boolean.set(self, s)
if self.value and os.name == 'nt':
raise InvalidRegistryValue, 'Value cannot be true on Windows.'
raise registry.InvalidRegistryValue, \
'Value cannot be true on Windows.'
conf.registerGlobalValue(conf.supybot.log, 'stdout',
registry.Boolean(True, """Determines whether the bot will log to