Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #16 from PaulMcMillan/patch-1

add a timeout so we don't get stuck on urls that behave badly.
  • Loading branch information...
commit 6719c7572f9e802331b16e2ff4b637d4911c2b38 2 parents d1065f5 + 2e5fe6f
Jannis Leidel authored June 21, 2011
1  django_website/aggregator/management/commands/mark_defunct_feeds.py
@@ -10,6 +10,7 @@ def handle(self, *args, **kwargs):
10 10
         verbose = kwargs.get('verbosity')
11 11
         for f in Feed.objects.all():
12 12
             try:
  13
+                socket.setdefaulttimeout(15)
13 14
                 r = urllib2.urlopen(f.feed_url)
14 15
             except urllib2.HTTPError, e:
15 16
                 if e.code == 404 or e.code == 500:

0 notes on commit 6719c75

Please sign in to comment.
Something went wrong with that request. Please try again.