diff --git a/app/eve_proxy/models.py b/app/eve_proxy/models.py index 8d4e0ab..d162bca 100644 --- a/app/eve_proxy/models.py +++ b/app/eve_proxy/models.py @@ -39,7 +39,7 @@ class CachedDocumentManager(models.Manager): return url - def api_query(self, url_path, params={}, no_cache=False, exceptions=True, timeout=settings.get('EVE_PROXY_TIMEOUT', 60), service="Auth"): + def api_query(self, url_path, params={}, no_cache=False, exceptions=True, timeout=getattr(settings, 'EVE_PROXY_TIMEOUT', 60), service="Auth"): """ Transparently handles querying EVE API or retrieving the document from the cache.