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: 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",