diff --git a/import2ledger/importers/nbpy2017.py b/import2ledger/importers/nbpy2017.py index 75ec212..6fd83be 100644 --- a/import2ledger/importers/nbpy2017.py +++ b/import2ledger/importers/nbpy2017.py @@ -71,7 +71,7 @@ class Invoice2017: for key, value in rows_text: if key == 'Issue date': self.invoice_date = self._strpdate(value) - recipient_h = table.find('th', text='Recipient') + recipient_h = table.find('th', string='Recipient') recipient_cell = recipient_h.find_next_sibling('td') self.payee = next(recipient_cell.stripped_strings)