From f31b71e8c368a3c503f6f551d2032501624e756e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 24 Feb 2026 21:13:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20replace=20bare=20except:=20with?= =?UTF-8?q?=20except=20Exception:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced a bare `except:` clause in `apns.py` with `except Exception:` to adhere to Python best practices. This prevents catching system-level interrupts like `KeyboardInterrupt` and `SystemExit`, while still maintaining the intended behavior for standard exceptions. Co-authored-by: Skywyze <7504109+Skywyze@users.noreply.github.com> --- apns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apns.py b/apns.py index 2a281ce..16c1c22 100644 --- a/apns.py +++ b/apns.py @@ -203,7 +203,7 @@ def _connect(self): break except timeout: pass - except: + except Exception: raise if self.enhanced: