fix: fix 'broad-exception-caught' for pylint

This commit is contained in:
Lance Edgar 2025-09-01 15:15:22 -05:00
parent c3e262804c
commit a56f6e9b91
2 changed files with 2 additions and 3 deletions

View file

@ -7,4 +7,3 @@ disable=fixme,
arguments-differ,
arguments-renamed,
attribute-defined-outside-init,
broad-exception-caught,

View file

@ -256,7 +256,7 @@ class OrderView(MasterView): # pylint: disable=too-many-public-methods
if action in json_actions:
try:
result = getattr(self, action)(batch, data)
except Exception as error:
except Exception as error: # pylint: disable=broad-exception-caught
log.warning("error calling json action for order", exc_info=True)
result = {"error": self.app.render_error(error)}
return self.json_response(result)
@ -820,7 +820,7 @@ class OrderView(MasterView): # pylint: disable=too-many-public-methods
try:
order = self.batch_handler.do_execute(batch, user)
except Exception as error:
except Exception as error: # pylint: disable=broad-exception-caught
log.warning("failed to execute new order batch: %s", batch, exc_info=True)
return {"error": self.app.render_error(error)}