feat: 批次统计分析时logerror后return
This commit is contained in:
parent
a91b75ae7a
commit
3cacea1b06
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue