Commit 38ca49b7 authored by Vadim Rutkovsky's avatar Vadim Rutkovsky

notifications: don't crash if item is None

parent 1c7674e7
......@@ -72,6 +72,8 @@ class NotificationManager:
item = self._player.get_current_media()
if not item:
artist = item.get_string(Grl.METADATA_KEY_ARTIST)\
or item.get_author()\
or _("Unknown Artist")
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