I have a property change script running on a view custom property as follows:
if previousValue.value > 0 and currentValue.value == 0: system.perspective.closeDock('alarmBanner')
The intention is, when the number of alarms shown in the alarm dock goes from >0 to 0, I close the alarm dock. It works fine, but in the designer, every time I open the view, or every time the value changes, or every time I look at the change script, I get an error:
AttributeError: 'NoneType' object has no attribute 'value'
…which I would normally take to mean that either
currentValue are null - but these are arguments automatically generated by the change script, so I don’t see how they can be.
As I say - it works at runtime, I’m just wanting to understand why the designer repeatedly throws error messages at me.