Quellcode durchsuchen

yentl told me to do stuff... fixed a bug where non-determinism at the same level during parent-child conflict resolution crashed the model

Simon Van Mierlo vor 7 Jahren
Ursprung
Commit
bdf6604c16
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/python_sccd/python_sccd_runtime/statecharts_core.py

+ 1 - 1
src/python_sccd/python_sccd_runtime/statecharts_core.py

@@ -1093,7 +1093,7 @@ class RuntimeClassBase(object):
             elif y.source in x.source.ancestors:
                 return -1
             else:
-                raise Exception('These items have no relation with each other.')
+                return 0
                 
         if self.small_step.has_stepped:
             self.small_step.next()