Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit f1922c2

Browse files
committed
1 parent 9cf3a54 commit f1922c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libnmap/objects/host.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ def extraports_reasons(self):
466466
:return: array of dict containing keys 'state' and 'count' or None
467467
"""
468468
r = self._extras.get('extraports', {})
469+
470+
if r is None:
471+
return None
469472

470473
return r.get('reasons', None)
471474

0 commit comments

Comments
 (0)