mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
src/log.py: Fix a NameError in a Windows specific section of the code.
This commit is contained in:
parent
a64f4e445b
commit
514ddbc74f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user