We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feeb089 commit ed60ba8Copy full SHA for ed60ba8
artiq/compiler/embedding.py
@@ -740,6 +740,10 @@ def finalize(self):
740
# specifications refers to ones we didn't encounter.
741
for host_type in self.embedding_map.type_map:
742
instance_type, constructor_type = self.embedding_map.type_map[host_type]
743
+ if not hasattr(instance_type, "constant_attributes"):
744
+ # Exceptions lack user-definable attributes.
745
+ continue
746
+
747
for attribute in instance_type.constant_attributes:
748
if attribute in instance_type.attributes:
749
# Fast path; if the ARTIQ Python type has the attribute, then every observed
0 commit comments