[leboncoin] do not crash if a select does not exist in the form
This commit is contained in:
parent
186d501406
commit
cd358c1239
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class HousingListPage(HTMLPage):
|
|||
if select_value >= ref_value:
|
||||
return select[select_value]
|
||||
|
||||
return select[select_keys[-1]]
|
||||
return select[select_keys[-1]] if select else 0
|
||||
|
||||
@pagination
|
||||
@method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue