Fix comparisons to None
Diff checked manually. autopep8 -a -ir -j2 --select=E711 . This required the "agressive" option because it can change code behavior.
This commit is contained in:
parent
7094931c92
commit
e0542c2e4a
14 changed files with 27 additions and 27 deletions
|
|
@ -66,7 +66,7 @@ class AccountsList(BasePage):
|
|||
|
||||
elif td.attrib.get('headers', '') == 'Solde':
|
||||
balance = td.find('div').text if td.find('div') is not None else None
|
||||
if balance != None:
|
||||
if balance is not None:
|
||||
account.currency = account.get_currency(balance)
|
||||
balance = FrenchTransaction.clean_amount(balance)
|
||||
account.balance = Decimal(balance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue