Skip to content

Commit 1548443

Browse files
committed
Do not restrict the falsy values of bindings on pick_binding method
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 9d8e10d commit 1548443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def pick_binding(
305305

306306
sfunc = getattr(self.metadata, service)
307307

308-
if bindings is None:
308+
if not bindings:
309309
if request and request.protocol_binding:
310310
bindings = [request.protocol_binding]
311311
else:

0 commit comments

Comments
 (0)