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:
-rw-r--r--nbxmpp/modules/tune.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nbxmpp/modules/tune.py b/nbxmpp/modules/tune.py
index e054e3a..5eb0b07 100644
--- a/nbxmpp/modules/tune.py
+++ b/nbxmpp/modules/tune.py
@@ -64,6 +64,11 @@ class Tune(BaseModule):
tune_dict[attr] = tune_node.getTagData(attr)
data = TuneData(**tune_dict)
+ if data.artist is None and data.title is None:
+ self._log.warning('Missing artist or title: %s %s',
+ data, properties.jid)
+ return
+
pubsub_event = properties.pubsub_event._replace(data=data)
self._log.info('Received tune: %s - %s', properties.jid, data)