From 21fa14b11ac8d74981d1bf08b776ddc54aae5d91 Mon Sep 17 00:00:00 2001 From: Nedas Date: Thu, 26 Apr 2018 16:33:08 +0300 Subject: [PATCH] [LINT] [11.0] account_bank_statement_import_mt940_pl_raiffeisen --- .../account_bank_statement_import.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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, + )