mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-03 21:27:36 +03:00
fix logger.warn->warning
This commit is contained in:
parent
bd66d58540
commit
7da46f392e
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ def load(configuration):
|
||||||
return utils.load_plugin(
|
return utils.load_plugin(
|
||||||
INTERNAL_TYPES, "hook", "Hook", BaseHook, configuration)
|
INTERNAL_TYPES, "hook", "Hook", BaseHook, configuration)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn(e)
|
logger.warning(e)
|
||||||
logger.warn("Hook \"%s\" failed to load, falling back to \"none\"." % configuration.get("hook", "type"))
|
logger.warning("Hook \"%s\" failed to load, falling back to \"none\"." % configuration.get("hook", "type"))
|
||||||
configuration = configuration.copy()
|
configuration = configuration.copy()
|
||||||
configuration.update({"hook": {"type": "none"}}, "hook", privileged=True)
|
configuration.update({"hook": {"type": "none"}}, "hook", privileged=True)
|
||||||
return utils.load_plugin(
|
return utils.load_plugin(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue