Skip to content

Commit ec63e50

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
satellite: fix exception overriding peer verification
Fix an exception raised when trying to override the peer verification settings on the CLI, where vcfg wouldn't be defined if the previous term was true. Walrus fail. Signed-off-by: John Mulligan <[email protected]>
1 parent 2706826 commit ec63e50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sambacc/commands/satellite/keybridge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def _serve(ctx: Context) -> None:
173173
raise Fail(str(err))
174174

175175
scopes = [_new_scope(ctx, s) for s in cfg.scopes()]
176-
if ctx.cli.verify_peer or (vcfg := cfg.verify()):
176+
vcfg = cfg.verify()
177+
if ctx.cli.verify_peer or vcfg:
177178
scopes = [_verify_peer(ctx, vcfg, s) for s in scopes]
178179
if not scopes:
179180
raise Fail("no keybridge scopes defined")

0 commit comments

Comments
 (0)