Fix: do not crash if balance is notavailable
This commit is contained in:
parent
a8fad76245
commit
148089329d
3 changed files with 14 additions and 15 deletions
|
|
@ -93,14 +93,6 @@ class PdfPage():
|
|||
details.append(detail)
|
||||
return details
|
||||
|
||||
def get_balance(self):
|
||||
for calls in self.get_calls():
|
||||
if "Votre solde" in calls.label:
|
||||
detail = Detail()
|
||||
detail.price = calls.price
|
||||
detail.label = u"Balance"
|
||||
return detail
|
||||
|
||||
# Standard pdf text extractor take text line by line
|
||||
# But the position in the file is not always the "real" position to display...
|
||||
# It produce some unsorted and unparsable data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue