prevent traceback when removing an account. Fixes #4322

This commit is contained in:
Yann Leboulanger 2008-09-16 07:55:33 +00:00
parent b7a899fe15
commit 330dd0e7a1
1 changed files with 2 additions and 1 deletions

View File

@ -1749,7 +1749,8 @@ class RosterWindow:
continue continue
pep.user_send_tune(account, artist, title, source) pep.user_send_tune(account, artist, title, source)
gajim.connections[account].music_track_info = music_track_info 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: if gajim.connections[account].music_track_info != music_track_info:
pep.user_send_tune(account, artist, title, source) pep.user_send_tune(account, artist, title, source)
gajim.connections[account].music_track_info = music_track_info gajim.connections[account].music_track_info = music_track_info