Skip to content

Commit

Permalink
[FIX] absi- _camt_oca. Prevent recursion in exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NL66278 committed Jul 28, 2021
1 parent ee11005 commit 5e43091
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def _parse_file(self, data_file):
_logger.info("Adyen parser error", exc_info=True)
raise ValueError("Not an adyen settlements file: %s" % exc)
except ValueError:
_logger.debug(
_("Statement file was not a Adyen settlement details file."),
exc_info=True,
)
return super()._parse_file(data_file)

def _find_additional_data(self, currency_code, account_number):
Expand Down Expand Up @@ -76,6 +80,9 @@ def _parse_adyen_file(self, data_file):
import_model = self.env["base_import.import"]
importer = import_model.create(
{"file": data_file, "file_name": "Ayden settlemnt details"}
import_model = self.env["base_import.import"]
importer = import_model.create(
{"file": data_file, "file_name": "Ayden settlement details"}
)
rows = importer._read_file({})

Expand Down

0 comments on commit 5e43091

Please sign in to comment.