[explorimmo] fix bug when available field is not found
This commit is contained in:
parent
cea81bee07
commit
678495e779
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class HousingPage2(JsonPage):
|
||||||
rooms = Dict('characteristics/roomCount')(self)
|
rooms = Dict('characteristics/roomCount')(self)
|
||||||
if len(rooms):
|
if len(rooms):
|
||||||
details['rooms'] = rooms[0]
|
details['rooms'] = rooms[0]
|
||||||
details['available'] = Dict('characteristics/available')(self)
|
details['available'] = Dict('characteristics/available', default=NotAvailable)(self)
|
||||||
return details
|
return details
|
||||||
|
|
||||||
def get_total_page(self):
|
def get_total_page(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue