From 4e4a91dbe112f2eeecd01822a3d39c89f0ab5eb1 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 16 Sep 2009 16:14:03 +0200
Subject: [PATCH] prevent traceback. Fixes #5269

---
 src/dialogs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/dialogs.py b/src/dialogs.py
index a12ceee8a1..d67d85ee28 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -1698,7 +1698,8 @@ class ChangeNickDialog(InputDialogCheck):
 		if len(self.room_queue) == 0:
 			self.cancel_handler = None
 			self.dialog.destroy()
-			del gajim.interface.instances['change_nick_dialog']
+			if 'change_nick_dialog' in gajim.interface.instances:
+				del gajim.interface.instances['change_nick_dialog']
 			return
 		self.account, self.room_jid, self.prompt = self.room_queue.pop(0)
 		self.setup_dialog()
-- 
GitLab