feat: 批次统计分析时logerror后return

This commit is contained in:
caoqianming 2025-07-22 15:56:26 +08:00
parent a91b75ae7a
commit 3cacea1b06
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ def main(batch: str, mgroup_obj:Mgroup=None):
batchst = BatchSt.objects.get(batch=batch, version=1)
except BatchSt.DoesNotExist:
myLogger.error(f"Batch {batch} does not exist")
return
data = {"批次号": batch}

View File

@ -16,6 +16,7 @@ def main(batch: str, mgroup_obj):
batchst = BatchSt.objects.get(batch=batch, version=1)
except BatchSt.DoesNotExist:
myLogger.error(f"Batch {batch} does not exist")
return
data = {"批次号": batch}