From 330dd0e7a13a9c8454e4d2bebaf8e639748e1e48 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Tue, 16 Sep 2008 07:55:33 +0000 Subject: [PATCH] prevent traceback when removing an account. Fixes #4322 --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 3e5f91a290..e24f61e5d6 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1749,7 +1749,8 @@ class RosterWindow: continue pep.user_send_tune(account, artist, title, source) gajim.connections[account].music_track_info = music_track_info - elif gajim.connections[account].pep_supported: + elif account in gajim.connections and \ + gajim.connections[account].pep_supported: if gajim.connections[account].music_track_info != music_track_info: pep.user_send_tune(account, artist, title, source) gajim.connections[account].music_track_info = music_track_info -- GitLab