Commits

David Chambers committed f957af5

Added `default` to `getattr` call.

Comments (0)

Files changed (1)

         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'))