From bdc0749cb8e4a25cac078380dc45b5189ab62330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=E5=B0=8F=E9=80=8F=E6=98=8E=E3=83=BB=E5=AE=B8?= =?UTF-8?q?=E2=9C=A8?= <47057319+TransparentLC@users.noreply.github.com> Date: Thu, 2 Nov 2023 11:57:37 +0800 Subject: [PATCH] fix: UnsupportedPlatform exception on Windows 11 and Python 3.12 --- notifypy/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifypy/notify.py b/notifypy/notify.py index 09c798a..a196261 100644 --- a/notifypy/notify.py +++ b/notifypy/notify.py @@ -110,7 +110,7 @@ def _selected_notification_system( return MacOSNotifier elif selected_platform == "Windows": - if platform.release() == "10": + if platform.release() in {"10", "11"}: from .os_notifiers.windows import WindowsNotifier return WindowsNotifier