We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20492ed commit dcae5fdCopy full SHA for dcae5fd
jaseci_core/jaseci/prim/obj_mixins.py
@@ -27,11 +27,15 @@ def get_architype(self):
27
and self._h._machine.parent().j_type == "sentinel"
28
else None
29
)
30
- mast = self.get_master()
31
- if arch is None and mast.active_snt() is not None:
32
- arch = mast.active_snt().get_arch_for(self)
33
- elif arch is None and self.parent() and self.parent().j_type == "sentinel":
+
+ if arch is None and self.parent() and self.parent().j_type == "sentinel":
34
arch = self.parent().get_arch_for(self)
+ if arch is None:
35
+ mast = self.get_master()
36
+ if mast.active_snt() is not None:
37
+ arch = mast.active_snt().get_arch_for(self)
38
39
self.cache_arch(arch)
40
return arch
41
0 commit comments