Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-11-28 11:00:38 +0300
committerlovetox <philipp@hoerist.com>2020-11-28 11:00:38 +0300
commitb3a814236d68c9332ecfaf581730e75f6b01667e (patch)
tree7076f53b4252874e1e1c963fd17056f803ef5251
parentce7fc5350858adf553a74cd675c074684b22086e (diff)
VCard: Raise error on empty text elements
-rw-r--r--nbxmpp/modules/vcard4.py2
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)