Using filterAlarm and alarmEvent

From stackoverflow I found this method to get me to use ints. This helps me get past another issue I had with None type being returned on the alarmEvent (if an alarm didn’t have the ‘linenum’ defined).

alarmline = int(alarmEvent.get('linenum') or 99)

The NoneType was probably messing me up in the first place. Tricky little ba$tard.