diff --git a/src/pyreqif/xlsx.py b/src/pyreqif/xlsx.py index 80c36a7..19437ee 100644 --- a/src/pyreqif/xlsx.py +++ b/src/pyreqif/xlsx.py @@ -54,7 +54,7 @@ def write_excel_line(worksheet, item, row, cols, depth, basepath, format): _, height = im.size col_height += height im.close() - worksheet.insert_image(row, cols.index(col), file, {'y_offset' : col_height-height} + worksheet.insert_image(row, cols.index(col), file, {'y_offset' : col_height-height}) except: print("Error with image: {}".format(file)) worksheet.write_url(row, cols.index(col)+1, os.path.join(basepath,file), string="Link to picture")