Module: check_mk
Branch: master
Commit: 67a82bdfde6b782168cff48ee767b7974667704c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=67a82bdfde6b78…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Sep 7 17:04:16 2011 +0200
Fix hook missing bug
---
web/htdocs/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 61fbb50..f7ca622 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2244,7 +2244,7 @@ def register_hook(hook, func):
view_hooks[hook].append(func)
def execute_hooks(hook):
- for hook_func in view_hooks[hook]:
+ for hook_func in view_hooks.get(hook, []):
try:
hook_func()
except: