From a56f6e9b91198c76d884a16796c9ede0a04c1106 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Sep 2025 15:15:22 -0500 Subject: [PATCH] fix: fix 'broad-exception-caught' for pylint --- .pylintrc | 1 - src/sideshow/web/views/orders.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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)}