Skip to content

Commit 0b4324c

Browse files
committed
cleanup and version bump
1 parent d4b4427 commit 0b4324c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: djangosaml2/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ def get_custom_setting(name: str, default=None):
3939
return getattr(settings, name, default)
4040

4141

42-
def available_idps(config: SPConfig, langpref=None, idp_to_check=None) -> dict:
42+
def available_idps(config: SPConfig, langpref=None, idp_to_check: str = None) -> dict:
4343
if langpref is None:
4444
langpref = "en"
4545

4646
idps = set()
4747

4848
for metadata in config.metadata.metadata.values():
4949
# initiate a fetch to the selected idp when using MDQ, otherwise the MetaDataMDX is an empty database
50-
if isinstance(metadata, MetaDataMDX) and idp_to_check and len(str(idp_to_check)) > 0:
50+
if isinstance(metadata, MetaDataMDX) and idp_to_check:
5151
m = metadata[idp_to_check]
5252
result = metadata.any("idpsso_descriptor", "single_sign_on_service")
5353
if result:

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def read(*rnames):
2727

2828
setup(
2929
name="djangosaml2",
30-
version="1.3.6",
30+
version="1.4.0",
3131
description="pysaml2 integration for Django",
3232
long_description=read("README.md"),
3333
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)