ModuleWarnings in src/ModuleManger.py should be logged as warn, not error

This commit is contained in:
jesopo 2018-11-26 14:42:41 +00:00
parent 1b03d31c6b
commit 8d32fed2fe

View file

@ -127,7 +127,7 @@ class ModuleManager(object):
try:
module = self._load_module(bot, name)
except ModuleWarning as warning:
self.log.error("Module '%s' not loaded", [name])
self.log.warn("Module '%s' not loaded", [name])
raise
except Exception as e:
self.log.error("Failed to load module \"%s\": %s",