Commits

Simon Cross committed f7ded50

Add missing yields to enable and disable search.

  • Participants
  • Parent commits 372e264

Comments (0)

Files changed (1)

         precommit_hooks = yield self.get_property("precommit") or []
 
         if self.SEARCH_PRECOMMIT_HOOK not in precommit_hooks:
-            self.set_properties({"precommit":
+            yield self.set_properties({"precommit":
                 precommit_hooks + [self.SEARCH_PRECOMMIT_HOOK]})
 
         defer.returnValue(True)
 
         if self.SEARCH_PRECOMMIT_HOOK in precommit_hooks:
             precommit_hooks.remove(self.SEARCH_PRECOMMIT_HOOK)
-            self.set_properties({"precommit": precommit_hooks})
+            yield self.set_properties({"precommit": precommit_hooks})
 
         defer.returnValue(True)