瀏覽代碼

[Fix] Missing return in sleep neuron when checking parameters

monf 8 年之前
父節點
當前提交
7a310c720b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kalliope/neurons/sleep/sleep.py

+ 1 - 0
kalliope/neurons/sleep/sleep.py

@@ -21,3 +21,4 @@ class Sleep(NeuronModule):
         """
         """
         if self.seconds is None:
         if self.seconds is None:
             raise MissingParameterException("You must set a number of seconds as parameter")
             raise MissingParameterException("You must set a number of seconds as parameter")
+        return True