From 838a8e00ced9b37213209dceaee7c9a7491395a1 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 3 Sep 2011 22:48:25 +0100 Subject: [PATCH] Use geattr instead --- app/eve_proxy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.