feat: envdata create时忽略IntegrityError
This commit is contained in:
parent
77434b0ec8
commit
9fe86eeb63
|
@ -397,5 +397,5 @@ def insert_mplogx_from_king_rest_chunk(objs: list):
|
|||
for _, item in enp_mpoints_dict.items():
|
||||
try:
|
||||
EnvData.objects.create(**item)
|
||||
except IntegrityError: # 忽略唯一性错误
|
||||
pass
|
||||
except IntegrityError as e: # 忽略唯一性错误
|
||||
myLogger.error(e, exc_info=True)
|
Loading…
Reference in New Issue