From b3a814236d68c9332ecfaf581730e75f6b01667e Mon Sep 17 00:00:00 2001 From: lovetox Date: Sat, 28 Nov 2020 09:00:38 +0100 Subject: VCard: Raise error on empty text elements --- nbxmpp/modules/vcard4.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nbxmpp/modules/vcard4.py b/nbxmpp/modules/vcard4.py index a18f3ee..cfa0cb5 100644 --- a/nbxmpp/modules/vcard4.py +++ b/nbxmpp/modules/vcard4.py @@ -421,6 +421,8 @@ class TextListProperty: raise ValueError('no value found') values = get_data_from_children(node, 'text') + if not values: + raise ValueError('no values found') parameters = get_parameters(node) -- cgit v1.2.3