Skip to content

Commit 9106f35

Browse files
authored
Fix walrus operator usage to correctly assign authomatic_cfg() result (#101)
* Fix walrus operator usage to correctly assign authomatic_cfg() result * Increase version to 2.0.0rc3.dev1
1 parent e234ee8 commit 9106f35

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

news/100.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix walrus operator usage to correctly assign authomatic_cfg() result

src/pas/plugins/authomatic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from pas.plugins.authomatic.patches import apply_patches
22

33

4-
__version__ = "2.0.0rc3.dev0"
4+
__version__ = "2.0.0rc3.dev1"
55

66

77
PACKAGE_NAME = "pas.plugins.authomatic"

src/pas/plugins/authomatic/browser/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _handle_error(self, error):
9999

100100
def __call__(self):
101101
provider = getattr(self, "provider", "")
102-
if cfg := authomatic_cfg() is None:
102+
if (cfg := authomatic_cfg()) is None:
103103
return _("Authomatic is not configured")
104104
if not is_root(self.context):
105105
# callback url is expected on either navigationroot or site root

0 commit comments

Comments
 (0)