diff --git a/finance_dl/venmo.py b/finance_dl/venmo.py index 6f576e5..262cbf7 100644 --- a/finance_dl/venmo.py +++ b/finance_dl/venmo.py @@ -222,7 +222,11 @@ def write_csv(self, csv_result): # Make sure rows are valid transactions with a date good_rows = [] for r in rows: - if 'Datetime' not in r or r['Datetime'] != '': + if not r['ID'].isdigit(): + logging.info('Invalid ID in row: {}'.format(r)) + continue + + if r['Datetime'] != '': good_rows.append(r) else: logging.info('Invalid date in row: {}'.format(r))