Browse Source

[LINT] [11.0] account_bank_statement_import_mt940_pl_raiffeisen

pull/156/head
Nedas 7 years ago
parent
commit
21fa14b11a
  1. 8
      account_bank_statement_import_mt940_pl_raiffeisen/account_bank_statement_import.py

8
account_bank_statement_import_mt940_pl_raiffeisen/account_bank_statement_import.py

@ -29,6 +29,10 @@ class AccountBankStatementImport(models.TransientModel):
""" """
parser = Parser() parser = Parser()
try: try:
return parser.parse(data_file.decode('windows-1252').encode('utf-8'))
return parser.parse(
data_file.decode('windows-1252').encode('utf-8')
)
except ValueError: except ValueError:
return super(AccountBankStatementImport, self)._parse_file(data_file)
return super(AccountBankStatementImport, self)._parse_file(
data_file,
)
Loading…
Cancel
Save