[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)
|
||||
if len(rooms):
|
||||
details['rooms'] = rooms[0]
|
||||
details['available'] = Dict('characteristics/available')(self)
|
||||
details['available'] = Dict('characteristics/available', default=NotAvailable)(self)
|
||||
return details
|
||||
|
||||
def get_total_page(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue