diff options
| author | krukas <maikel_martens_1@hotmail.com> | 2016-07-02 14:18:28 +0200 |
|---|---|---|
| committer | Florian Apolloner <apollo13@users.noreply.github.com> | 2016-07-02 14:18:28 +0200 |
| commit | 7f66f98051f8fb8301f70c9596518ac5d517f245 (patch) | |
| tree | ca4097ab2a122ab3a3a6409a7d455d008eeb7d6f /aggregator | |
| parent | 8c723d9b508f586290b10f27143f9723666e47c6 (diff) | |
[BUGFIX] When people.djangoproject is down/slow first non cache page is slow (#672)
Diffstat (limited to 'aggregator')
| -rw-r--r-- | aggregator/context_processors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aggregator/context_processors.py b/aggregator/context_processors.py index 80feac4b..1948c6a8 100644 --- a/aggregator/context_processors.py +++ b/aggregator/context_processors.py @@ -9,7 +9,7 @@ STATS_CACHE_KEY = 'community_stats' def fetch(url): try: - return requests.get(url).json() + return requests.get(url, timeout=0.5).json() except (RequestException, ValueError): return {} |
