Target.has_calibration
errors for instructions without properties
#12525
Labels
bug
Something isn't working
Environment
What is happening?
If a
Target
has anInstruction
withNone
for itsInstructionProperties
,Target.has_calibration
raises anAttributeError
.How can we reproduce the issue?
Consider this case from the
Target
docstring with thehas_calibration
call added at the end:What should happen?
The last line above should return
False
Any suggestions?
I will submit a PR.
The text was updated successfully, but these errors were encountered: