From 976f4eb712bc5bdb91199234c949747f06e2a44e Mon Sep 17 00:00:00 2001 From: Rodrigo Alvarado Date: Fri, 23 Aug 2024 14:48:49 -0600 Subject: [PATCH] Fix Issue #194 --- bloodhound/ad/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bloodhound/ad/utils.py b/bloodhound/ad/utils.py index f6bc5c4..61f09b3 100644 --- a/bloodhound/ad/utils.py +++ b/bloodhound/ad/utils.py @@ -355,6 +355,8 @@ def get_entry_property(entry, prop, default=None, raw=False): converting empty values to the default specified. This is primarily for output to JSON """ + if entry is None: + return default try: if raw: value = entry['raw_attributes'][prop]