Commit 586d8ed0 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Tune: Bail out if there is no artist or title

parent 398153b1
......@@ -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)
pubsub_event = properties.pubsub_event._replace(data=data)'Received tune: %s - %s', properties.jid, data)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment