6549cd76 by 冯轩

FIX bug

1 parent 5b7f2e36
......@@ -108,11 +108,11 @@ class Command(BaseCommand, LoggerMixin):
if zip_doc is None:
self.online_log.warn('{0} [zip_2_pdfs] [doc not exist] [task_str={1}]'.format(
self.log_base, task_str))
return None, business_type
return None, business_type, None
elif zip_doc.status != DocStatus.INIT.value:
self.online_log.warn('{0} [zip_2_pdfs] [doc status error] [task_str={1}] [doc_status={2}]'.format(
self.log_base, task_str, zip_doc.status))
return None, business_type
return None, business_type, None
zip_doc.status = DocStatus.PROCESSING.value
zip_doc.start_time = timezone.now()
......@@ -120,7 +120,7 @@ class Command(BaseCommand, LoggerMixin):
except Exception as e:
self.online_log.error('{0} [process error (zip_2_pdfs)] [error={1}]'.format(
self.log_base, traceback.format_exc()))
return None, None
return None, None, None
else:
self.online_log.info('{0} [zip_2_pdfs] [db save end] [task_str={1}]'.format(
self.log_base, task_str))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!