Log warning instead of error for batch population error

this is most typically caused by bad user input; a warning is shown on
screen so they hopefully can guess what the problem is.  no need to
loop in the admins via email
This commit is contained in:
Lance Edgar 2023-11-05 18:31:43 -06:00
parent 172fe6c49c
commit fc96fb40fb

View file

@ -1057,7 +1057,8 @@ class BatchMasterView(MasterView):
session.flush()
except Exception as error:
session.rollback()
log.exception("population failed for batch %s: %s", batch.uuid, batch)
log.warning("population failed for batch %s: %s", batch.uuid, batch,
exc_info=True)
session.close()
if progress:
progress.session.load()