Fix empty amount. Closes #1415
This commit is contained in:
parent
a923f14172
commit
b828864901
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ class CSVAlreadyAsked(Exception):
|
|||
pass
|
||||
|
||||
def clean_amount(text):
|
||||
return Decimal(AmericanTransaction.clean_amount(text))
|
||||
amnt = AmericanTransaction.clean_amount(text)
|
||||
return Decimal(amnt) if amnt else Decimal("0")
|
||||
|
||||
|
||||
class LoginPage(BasePage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue