Jelajahi Sumber

Merge branch 'dev' into unittests

nico 8 tahun lalu
induk
melakukan
f5628d5589
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      kalliope/core/OrderAnalyser.py

+ 4 - 0
kalliope/core/OrderAnalyser.py

@@ -44,6 +44,10 @@ class OrderAnalyser:
 
         list_match_synapse = list()
 
+        # if the received order is None we can stop the process immediately
+        if order is None:
+            return list_match_synapse
+
         # test each synapse from the brain
         for synapse in cls.brain.synapses:
             # we are only concerned by synapse with a order type of signal