ModuleWarnings in src/ModuleManger.py should be logged as warn
, not error
This commit is contained in:
parent
1b03d31c6b
commit
8d32fed2fe
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class ModuleManager(object):
|
||||||
try:
|
try:
|
||||||
module = self._load_module(bot, name)
|
module = self._load_module(bot, name)
|
||||||
except ModuleWarning as warning:
|
except ModuleWarning as warning:
|
||||||
self.log.error("Module '%s' not loaded", [name])
|
self.log.warn("Module '%s' not loaded", [name])
|
||||||
raise
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.log.error("Failed to load module \"%s\": %s",
|
self.log.error("Failed to load module \"%s\": %s",
|
||||||
|
|
Loading…
Reference in a new issue