3
0
Fork 0

fix: fix 'bare-except' and 'broad-exception-caught' for pylint

This commit is contained in:
Lance Edgar 2025-08-31 21:55:39 -05:00
parent f989f41e86
commit 0f66d24dd4
7 changed files with 9 additions and 11 deletions

View file

@ -329,7 +329,7 @@ class BatchMasterView(MasterView):
self.batch_handler.do_populate(batch, progress=progress)
session.flush()
except Exception as error:
except Exception as error: # pylint: disable=broad-exception-caught
session.rollback()
log.warning(
"failed to populate %s: %s",
@ -367,7 +367,7 @@ class BatchMasterView(MasterView):
try:
self.batch_handler.do_execute(batch, self.request.user)
except Exception as error:
except Exception as error: # pylint: disable=broad-exception-caught
log.warning("failed to execute batch: %s", batch, exc_info=True)
self.request.session.flash(f"Execution failed!: {error}", "error")