From fb7bff01bcd776fab6f1df4c8b6fd12304e07350 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 23 Oct 2017 15:23:05 -0700 Subject: [PATCH] Don't throw an exception when a function does not exist in the registry function list --- openlp/core/common/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/common/registry.py b/openlp/core/common/registry.py index 71978ae5d..252274d4d 100644 --- a/openlp/core/common/registry.py +++ b/openlp/core/common/registry.py @@ -128,7 +128,7 @@ class Registry(object): :param event: The function description.. :param function: The function to be called when the event happens. """ - if event in self.functions_list: + if event in self.functions_list and function in self.functions_list[event]: self.functions_list[event].remove(function) def execute(self, event, *args, **kwargs):