handle None.
@@ -240,6 +240,7 @@ class Host(Features):
flags_counter[decoded_flag] = 0
for row in rows:
flags = self._safe_int(row.get(flags_field, 0))
+ if flags:
for bit, decoded_flag in decode_map.items():
if flags & (2**bit):
flags_counter[decoded_flag] += 1
