diff --git a/.pylintrc b/.pylintrc index 0fb067a..8b580d2 100644 --- a/.pylintrc +++ b/.pylintrc @@ -7,4 +7,3 @@ disable=fixme, arguments-differ, arguments-renamed, attribute-defined-outside-init, - broad-exception-caught, diff --git a/src/sideshow/web/views/orders.py b/src/sideshow/web/views/orders.py index 500fe4c..7903e2b 100644 --- a/src/sideshow/web/views/orders.py +++ b/src/sideshow/web/views/orders.py @@ -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)}