Skip to content

Commit

Permalink
Avoid DRY violation here now
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lamb <[email protected]>
  • Loading branch information
lamby committed Feb 4, 2016
1 parent 96ef614 commit 3c18898
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions django_slack/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def setting(suffix, default):
ICON_EMOJI = setting('ICON_EMOJI', None)
ENDPOINT_URL = setting('ENDPOINT_URL', DEFAULT_ENDPOINT_URL)

BACKEND = setting('BACKEND', 'django_slack.backends.%s' %
('DisabledBackend' if settings.DEBUG else 'UrllibBackend'))
BACKEND_FOR_QUEUE = setting('BACKEND_FOR_QUEUE', 'django_slack.backends.%s' %
('DisabledBackend' if settings.DEBUG else 'UrllibBackend'))
_BACKEND = 'django_slack.backends.DisabledBackend' if settings.DEBUG else \
'django_slack.backends.UrllibBackend'
BACKEND = setting('BACKEND', _BACKEND)
BACKEND_FOR_QUEUE = setting('BACKEND_FOR_QUEUE', _BACKEND)

FAIL_SILENTLY = setting('FAIL_SILENTLY', False)

0 comments on commit 3c18898

Please sign in to comment.