Commit 6113b443 authored by Michal Čihař's avatar Michal Čihař

Fix access to settings

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 536741e1
......@@ -58,10 +58,10 @@ def weblate_context(request):
)
if (hasattr(settings, 'ROLLBAR') and
'client_token' in settings['ROLLBAR'] and
'environment' in settings['ROLLBAR']):
rollbar_token = settings['ROLLBAR']['client_token']
rollbar_environment = settings['ROLLBAR']['environment']
'client_token' in settings.ROLLBAR and
'environment' in settings.ROLLBAR):
rollbar_token = settings.ROLLBAR['client_token']
rollbar_environment = settings.ROLLBAR['environment']
else:
rollbar_token = None
rollbar_environment = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment