Daniel Brötzmann pushed to branch mainwindow at gajim / gajim


Commits:
eab57243 by wurstsalat at 2021-10-19T18:19:43+02:00
Don't fail if sound event is None

- - - - -


1 changed file:

- gajim/common/helpers.py


Changes:

=====================================
gajim/common/helpers.py
=====================================
@@ -455,6 +455,8 @@ def get_contact_dict_for_account(account):
 
 
 def play_sound(sound_event, account, force=False):
+    if sound_event is None:
+        return
     if force or allow_sound_notification(account, sound_event):
         play_sound_file(
             app.settings.get_soundevent_settings(sound_event)['path'])



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/eab5724364784210815d766d799ba7949d42240d

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/eab5724364784210815d766d799ba7949d42240d
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to