From a9497b16e8d7f7e660e168c9fcf60012254d5e30 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 5 Aug 2020 14:17:58 -0400 Subject: [PATCH] Fix handling of unset crypted attributes --- confluent_server/confluent/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/messages.py b/confluent_server/confluent/messages.py index 304f32e5..1d31dc12 100644 --- a/confluent_server/confluent/messages.py +++ b/confluent_server/confluent/messages.py @@ -1801,7 +1801,7 @@ class CryptedAttributes(Attributes): nkv = {} for key in kv: nkv[key] = {'isset': False} - if 'hashvalue' in kv[key]: + if kv[key] and 'hashvalue' in kv[key]: targkey = 'hashvalue' else: targkey = 'cryptvalue'