From cf58a18f000b9eb12ef7db9a16398426348aae59 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 22 Feb 2012 12:59:57 +0100 Subject: [PATCH] fix crash when a bookmarked housing has been removed from website --- weboob/applications/qflatboob/main_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/applications/qflatboob/main_window.py b/weboob/applications/qflatboob/main_window.py index eb69fd1f..d62b9a7e 100644 --- a/weboob/applications/qflatboob/main_window.py +++ b/weboob/applications/qflatboob/main_window.py @@ -222,6 +222,9 @@ class MainWindow(QtMainWindow): self.process = None return + if not housing: + return + item = HousingListWidgetItem(housing) item.setAttrs(self.storage)