do not crash if there is no history link for an account

This commit is contained in:
Romain Bignon 2012-11-10 13:13:02 +01:00
commit 9bdd96271c

View file

@ -126,6 +126,8 @@ class AccountsList(CragrBasePage):
if first_link is not None:
account._link_id = first_link.get('href')
self.logger.debug(' the history link appears to be %s' % account._link_id)
else:
account._link_id = None
l.append(account)
return l