diff --git a/account_bank_statement_import_mt940_pl_raiffeisen/account_bank_statement_import.py b/account_bank_statement_import_mt940_pl_raiffeisen/account_bank_statement_import.py index c3faee7..47caf9c 100644 --- a/account_bank_statement_import_mt940_pl_raiffeisen/account_bank_statement_import.py +++ b/account_bank_statement_import_mt940_pl_raiffeisen/account_bank_statement_import.py @@ -29,6 +29,10 @@ class AccountBankStatementImport(models.TransientModel): """ parser = Parser() 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: - return super(AccountBankStatementImport, self)._parse_file(data_file) + return super(AccountBankStatementImport, self)._parse_file( + data_file, + )