From 8c8e00fa392dcd9a73a7f6d6e0a6bc9267ac8121 Mon Sep 17 00:00:00 2001 From: Simon Oliver Tveit Date: Mon, 4 Sep 2023 20:30:56 +0200 Subject: [PATCH] Revise docstring --- python/nav/jwtconf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/nav/jwtconf.py b/python/nav/jwtconf.py index d684659738..5d8287aba5 100644 --- a/python/nav/jwtconf.py +++ b/python/nav/jwtconf.py @@ -16,8 +16,10 @@ class JWTConf(NAVConfigParser): NAV_SECTION = "nav" def get_issuers_setting(self) -> Dict[str, Any]: - """Parses the webfront/jwt.conf config file and produces a dictionary that can - be used as settings for the `drf-oidc-auth` django extension""" + """Parses the webfront/jwt.conf config file and returns a dictionary that can + be used as settings for the `drf-oidc-auth` django extension. + If the parsing fails, an empty dict is returned. + """ try: external_settings = self._get_settings_for_external_tokens() local_settings = self._get_settings_for_nav_issued_tokens()