diff --git a/src/ofxstatement/plugins/revolut.py b/src/ofxstatement/plugins/revolut.py index a703656..8fb09ae 100644 --- a/src/ofxstatement/plugins/revolut.py +++ b/src/ofxstatement/plugins/revolut.py @@ -59,7 +59,8 @@ def parse_record(self, line: List[str]) -> Optional[StatementLine]: stmt_line = super().parse_record(line) # Generate a unique ID - balance = self.parse_float(line[c["Balance"]]) + balance_content = line[c["Balance"]] + balance = self.parse_float(balance_content) if balance_content else 0 stmt_line.id = md5(f"{stmt_line.date}-{stmt_line.payee}-{stmt_line.amount}-{balance}".encode())\ .hexdigest()