From 0ad9abb1aaddaeea1661927ae8d064ddd21dca2a Mon Sep 17 00:00:00 2001 From: Charlie Tonneslan Date: Mon, 18 May 2026 08:16:01 -0400 Subject: [PATCH] ansistrm: narrow bare except to Exception flake8's E722 catches this. KeyboardInterrupt and SystemExit are already re-raised above, so the bare except was only there for the remaining Exception subclasses anyway. Signed-off-by: Charlie Tonneslan --- openstates/utils/ansistrm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstates/utils/ansistrm.py b/openstates/utils/ansistrm.py index c0a735f2e..75f10a5cb 100644 --- a/openstates/utils/ansistrm.py +++ b/openstates/utils/ansistrm.py @@ -62,7 +62,7 @@ def emit(self, record): self.flush() except (KeyboardInterrupt, SystemExit): raise - except: + except Exception: self.handleError(record) if os.name != "nt":