fix: fix 'bare-except' and 'broad-exception-caught' for pylint
This commit is contained in:
parent
f989f41e86
commit
0f66d24dd4
7 changed files with 9 additions and 11 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue