Skip to content

Commit ed60ba8

Browse files
author
whitequark
committedSep 14, 2016
compiler: skip kernel_invariant linting for exception types.
1 parent feeb089 commit ed60ba8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎artiq/compiler/embedding.py

+4
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,10 @@ def finalize(self):
740740
# specifications refers to ones we didn't encounter.
741741
for host_type in self.embedding_map.type_map:
742742
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+
743747
for attribute in instance_type.constant_attributes:
744748
if attribute in instance_type.attributes:
745749
# Fast path; if the ARTIQ Python type has the attribute, then every observed

0 commit comments

Comments
 (0)
Please sign in to comment.