diff options
author | lovetox <philipp@hoerist.com> | 2020-11-28 11:00:38 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-11-28 11:00:38 +0300 |
commit | b3a814236d68c9332ecfaf581730e75f6b01667e (patch) | |
tree | 7076f53b4252874e1e1c963fd17056f803ef5251 | |
parent | ce7fc5350858adf553a74cd675c074684b22086e (diff) |
VCard: Raise error on empty text elements
-rw-r--r-- | nbxmpp/modules/vcard4.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |