CrAgr: now handles history-less accounts, at least for Toulouse-like layouts

This commit is contained in:
Xavier G 2012-02-10 08:23:34 +01:00 committed by Romain Bignon
commit 0734e5d21c
2 changed files with 15 additions and 4 deletions

View file

@ -131,6 +131,9 @@ class Cragr(BaseBrowser):
return None
def get_history(self, account):
# some accounts may exist without a link to any history page
if account.link_id is None:
return
history_url = account.link_id
operations_count = 0