1. David Chambers
  2. Mango

Commits

David Chambers  committed f957af5

Added `default` to `getattr` call.

  • Participants
  • Parent commits 4f32521
  • Branches default

Comments (0)

Files changed (1)

File views.py

View file
         raise disqus.APIError
 
     comments = []
-    if getattr(settings, 'DISQUS'):
+    if getattr(settings, 'DISQUS', None):
         try:
             dsq = disqus.DisqusService(DISQUS_API_VERSION)
             dsq.login(DISQUS.get('api_key'))