fix dda
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -329,6 +329,8 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -329,6 +329,8 @@ class Command(BaseCommand, LoggerMixin): |
329 | except Exception as e: | 329 | except Exception as e: |
330 | self.folder_log.info('{0} [daily wb failed] [result={1}] [error={2}]'.format( | 330 | self.folder_log.info('{0} [daily wb failed] [result={1}] [error={2}]'.format( |
331 | self.log_base, result, traceback.format_exc())) | 331 | self.log_base, result, traceback.format_exc())) |
332 | if len(wb.sheetnames) > 1 and 'Sheet' in wb.sheetnames: | ||
333 | wb.remove(wb.get_sheet_by_name('Sheet')) | ||
332 | wb.save(wb_path) | 334 | wb.save(wb_path) |
333 | 335 | ||
334 | def folder_process(self, input_dir, result_queue): | 336 | def folder_process(self, input_dir, result_queue): | ... | ... |
-
Please register or sign in to post a comment