Commit 4622cb2a18367fe63e0c1be9b18d9dde61318aab

Authored by Sergio Oliveira
1 parent cc0e8772

Checked for existence for settings before using them

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/colab/settings.py
... ... @@ -306,10 +306,10 @@ DPASTE_LEXER_DEFAULT = 'text'
306 306 from .utils.conf import load_yaml_settings
307 307 locals().update(load_yaml_settings())
308 308  
309   -if RAVEN_DSN:
  309 +if locals().get('RAVEN_DSN', False):
310 310 RAVEN_CONFIG = {
311 311 'dsn': RAVEN_DSN + '?timeout=30',
312 312 }
313 313  
314   -for app_label in PROXIED_APPS.keys():
  314 +for app_label in locals().get('PROXIED_APPS', {}).keys():
315 315 INSTALLED_APPS += ('proxy.{}'.format(app_label),)
... ...