From cd358c12397dbb23052ac54d127db3785fd16bbe Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Tue, 10 Mar 2015 18:08:40 +0100 Subject: [PATCH] [leboncoin] do not crash if a select does not exist in the form --- modules/leboncoin/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/leboncoin/pages.py b/modules/leboncoin/pages.py index c3900ec2..ecc708e0 100644 --- a/modules/leboncoin/pages.py +++ b/modules/leboncoin/pages.py @@ -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