fix bug
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -506,6 +506,8 @@ class BSWorkbook(Workbook): | ... | @@ -506,6 +506,8 @@ class BSWorkbook(Workbook): |
506 | if classify == consts.SPECIAL_ZSYH_CLASSIFY and is_first_row: # 招商银行2行表头 | 506 | if classify == consts.SPECIAL_ZSYH_CLASSIFY and is_first_row: # 招商银行2行表头 |
507 | find_count = 0 | 507 | find_count = 0 |
508 | for tmp_idx, value_str in enumerate(row_value): | 508 | for tmp_idx, value_str in enumerate(row_value): |
509 | if not isinstance(value_str, str): | ||
510 | continue | ||
509 | if tmp_idx >= len(consts.EN_HEADER_LIST): | 511 | if tmp_idx >= len(consts.EN_HEADER_LIST): |
510 | continue | 512 | continue |
511 | if value_str.find(consts.EN_HEADER_LIST[tmp_idx]) != -1: | 513 | if value_str.find(consts.EN_HEADER_LIST[tmp_idx]) != -1: | ... | ... |
-
Please register or sign in to post a comment