Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
add safety net for auth_providers setting
Browse files Browse the repository at this point in the history
  • Loading branch information
thurloat committed Jul 30, 2013
1 parent f1caa50 commit f86eb43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sentry_jira/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def view(self, request, group, **kwargs):
has_auth_configured = self.has_auth_configured()
if not (has_auth_configured and self.is_configured(project=group.project, request=request)):
if self.auth_provider:
required_auth_settings = settings.AUTH_PROVIDERS[self.auth_provider]
providers = settings.AUTH_PROVIDERS if hasattr(
settings, 'AUTH_PROVIDERS') else settings.SENTRY_AUTH_PROVIDERS
required_auth_settings = providers[self.auth_provider]
else:
required_auth_settings = None

Expand Down

0 comments on commit f86eb43

Please sign in to comment.