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/__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" 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