From 1078112473ee8096c8481698d34f752315252902 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 9 Nov 2008 21:40:14 +0000 Subject: [PATCH] prevent a traceback with completion. Fixes #4461 --- src/history_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/history_window.py b/src/history_window.py index 4ce6907d8..36e790191 100644 --- a/src/history_window.py +++ b/src/history_window.py @@ -156,6 +156,8 @@ class HistoryWindow: if actual_jid in keys: keys.remove(actual_jid) keys.insert(0, actual_jid) + if None in keys: + keys.remove(None) # Map jid to info tuple # Warning : This for is time critical with big DB for key in keys: