Skip to content

Commit

Permalink
Add analytics timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer committed Jun 6, 2018
1 parent 46ca5d7 commit 2c09fda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readthedocs/analytics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def send_to_analytics(data):
resp = requests.post(
'https://www.google-analytics.com/collect',
data=data,
timeout=3, # seconds
)
except requests.Timeout:
log.warning('Timeout sending to Google Analytics')
Expand Down

0 comments on commit 2c09fda

Please sign in to comment.