prevent traceback when removing an account. Fixes #4322
This commit is contained in:
parent
b7a899fe15
commit
330dd0e7a1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue