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()
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()