Merge branch 'fix/folder' into feature/0611
Showing
1 changed file
with
2 additions
and
5 deletions
... | @@ -333,13 +333,10 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -333,13 +333,10 @@ class Command(BaseCommand, LoggerMixin): |
333 | traceback.format_exc())) | 333 | traceback.format_exc())) |
334 | failed_path = os.path.join(failed_output_dir, '{0}_{1}'.format(time.time(), name)) | 334 | failed_path = os.path.join(failed_output_dir, '{0}_{1}'.format(time.time(), name)) |
335 | shutil.move(path, failed_path) | 335 | shutil.move(path, failed_path) |
336 | except PermissionError: | 336 | except Exception as e: |
337 | os_error_filename_set.add(name) | 337 | os_error_filename_set.add(name) |
338 | self.folder_log.error('{0} [permission error] [path={1}] [error={2}]'.format( | 338 | self.folder_log.error('{0} [file move error] [path={1}] [error={2}]'.format( |
339 | self.log_base, path, traceback.format_exc())) | 339 | self.log_base, path, traceback.format_exc())) |
340 | except Exception as e: | ||
341 | self.folder_log.error('{0} [file error] [error={1}]'.format( | ||
342 | self.log_base, traceback.format_exc())) | ||
343 | 340 | ||
344 | def handle(self, *args, **kwargs): | 341 | def handle(self, *args, **kwargs): |
345 | process_list = [] | 342 | process_list = [] | ... | ... |
-
Please register or sign in to post a comment