[CapHousing] add and handle in leboncoin a new house type : UNKNOWN

This commit is contained in:
Bezleputh 2014-09-25 15:25:22 +02:00
commit 3e1a8b735a
2 changed files with 5 additions and 9 deletions

View file

@ -67,7 +67,8 @@ class LeboncoinBackend(BaseBackend, CapHousing):
ret = []
for g in query.house_types:
ret.append(self.RET.get(g))
if g in self.RET:
ret.append(self.RET.get(g))
if len(ret) == 0:
return list()