From 459bae95d4577e382681cf996fae48df3f50367d Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Fri, 11 Apr 2025 13:44:40 +0300 Subject: [PATCH 1/2] Fix walrus operator usage to correctly assign authomatic_cfg() result --- news/100.bugfix | 1 + src/pas/plugins/authomatic/browser/view.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 news/100.bugfix diff --git a/news/100.bugfix b/news/100.bugfix new file mode 100644 index 0000000..0fd113f --- /dev/null +++ b/news/100.bugfix @@ -0,0 +1 @@ +Fix walrus operator usage to correctly assign authomatic_cfg() result diff --git a/src/pas/plugins/authomatic/browser/view.py b/src/pas/plugins/authomatic/browser/view.py index 9132507..4ad9193 100644 --- a/src/pas/plugins/authomatic/browser/view.py +++ b/src/pas/plugins/authomatic/browser/view.py @@ -99,7 +99,7 @@ def _handle_error(self, error): def __call__(self): provider = getattr(self, "provider", "") - if cfg := authomatic_cfg() is None: + if (cfg := authomatic_cfg()) is None: return _("Authomatic is not configured") if not is_root(self.context): # callback url is expected on either navigationroot or site root From 27abc8590111662b609424bed767c1441781e924 Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Fri, 11 Apr 2025 14:32:23 +0300 Subject: [PATCH 2/2] Increase version to 2.0.0rc3.dev1 --- src/pas/plugins/authomatic/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pas/plugins/authomatic/__init__.py b/src/pas/plugins/authomatic/__init__.py index b0fc4f8..5a4c1a2 100644 --- a/src/pas/plugins/authomatic/__init__.py +++ b/src/pas/plugins/authomatic/__init__.py @@ -1,7 +1,7 @@ from pas.plugins.authomatic.patches import apply_patches -__version__ = "2.0.0rc3.dev0" +__version__ = "2.0.0rc3.dev1" PACKAGE_NAME = "pas.plugins.authomatic"