Skip to content

Commit bd5f932

Browse files
authored
Update view.py
1 parent 942b2bc commit bd5f932

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

estreamer/metadata/view.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1089,9 +1089,12 @@ def create( self ):
10891089
View.BLOCKED,
10901090
[ Cache.BLOCKED, record['blocked']] )
10911091

1092-
self.__addValueIfAvailable(
1093-
View.BLOCKED_REASON,
1094-
[ Cache.BLOCKED_REASON, record['blockedReasonId']] )
1092+
# It is possible to get limited blocked reason dispositions on FMC 6.x, so we need to check
1093+
if 'blockedReasonId' in record :
1094+
1095+
self.__addValueIfAvailable(
1096+
View.BLOCKED_REASON,
1097+
[ Cache.BLOCKED_REASON, record['blockedReasonId']] )
10951098

10961099
self.__addValueIfAvailable(
10971100
View.IP_PROTOCOL,

0 commit comments

Comments
 (0)