[leboncoin] do not crash if a select does not exist in the form

This commit is contained in:
Bezleputh 2015-03-10 18:08:40 +01:00
commit cd358c1239

View file

@ -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