From f18b96ff5b1844b301c32d4e447455224fc4c540 Mon Sep 17 00:00:00 2001 From: Willy Villard Date: Mon, 1 Apr 2013 12:00:50 +0200 Subject: [PATCH] freemobile: Fix history when internationals calls option is not suscribed fixes #1078 --- modules/freemobile/pages/history.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/freemobile/pages/history.py b/modules/freemobile/pages/history.py index 9d5c3403..b59fab33 100644 --- a/modules/freemobile/pages/history.py +++ b/modules/freemobile/pages/history.py @@ -59,7 +59,8 @@ class DetailsPage(BasePage): # International parsing divint = div.xpath('div[@class="international hide"]')[0] - self.parse_div(divint, u"Appels émis : %s | Appels reçus : %s", num, True) + if divint.xpath('div[@class="detail"]'): + self.parse_div(divint, u"Appels émis : %s | Appels reçus : %s", num, True) for divbill in self.document.xpath('//div[@class="facture"]'): for trbill in divbill.xpath('table/tr'):