From 67c24a8926e862f6533e8591f0d9685e339889f3 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 22 Dec 2012 21:22:36 +0100 Subject: [PATCH] fix crash when there is no ID on a transaction --- modules/bred/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bred/pages.py b/modules/bred/pages.py index f5c340cc..ceab5861 100644 --- a/modules/bred/pages.py +++ b/modules/bred/pages.py @@ -165,7 +165,7 @@ class TransactionsPage(BasePage): is_coming = False continue - t = Transaction(col_label.attrib['id']) + t = Transaction(col_label.attrib.get('id', '')) # an optional tooltip on page contain the second part of the transaction label. tooltip = self.document.xpath('//div[@id="tooltip%s"]' % t.id)