BookOps-CAT / babel

Windows application for library selectors. Creates order MARC records for Sierra based on data from a spreadsheet.
0 stars 0 forks source link

Sheet ingest error on title that consist of a number #77

Closed klinga closed 5 years ago

klinga commented 5 years ago

Babel unable to import sheet that includes a title that consist of a number (example: "1984") Error: AttributeError: 'int' object has no attribute 'strip' on line: title = row[self.title_col].strip()

def _map_content(self, row): """ returns rows where title column has some value """ try: kwargs = dict() if row[self.title_col] is not None: title = row[self.title_col].strip()

klinga commented 5 years ago

fixed