Skip to content

Commit

Permalink
Handle only expected configparser exceptions
Browse files Browse the repository at this point in the history
aka removes the "general" exception check
  • Loading branch information
stveit committed May 24, 2023
1 parent 1eea648 commit 0e174c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/nav/jwtconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def _get_settings_for_external_tokens(self):
'claims_options': claims_options,
}
except (
configparser.Error,
configparser.NoSectionError,
configparser.NoOptionError,
) as error:
Expand Down Expand Up @@ -102,7 +101,6 @@ def _get_nav_token_config_option(self, option):
get = partial(self.get, self.NAV_SECTION)
return get(option)
except (
configparser.Error,
configparser.NoSectionError,
configparser.NoOptionError,
) as error:
Expand Down

0 comments on commit 0e174c5

Please sign in to comment.