d8ade80c by 周伟奇

Merge branch 'fix/folder' into feature/0611

2 parents 20afb1b5 71184c42
...@@ -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 = []
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!