Permalink
Browse files

Check for txt before gz, gz doesn't update regularly enough

  • Loading branch information...
1 parent de82f5b commit 79c3cb53b8d9aba2f91186494b57f9322033bbcb @meldra committed Aug 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 brain/views.py
View
@@ -60,10 +60,10 @@ def mbox(date_obj, weekday, reply=True):
urltxt = '%s%s.txt' % (settings.MAILMAN_BASEURL, mon)
try:
- response = urllib2.urlopen(url)
+ response = urllib2.urlopen(urltxt)
except:
try:
- response = urllib2.urlopen(urltxt)
+ response = urllib2.urlopen(url)
except:
return False
tmpfile = '/tmp/%s.txt' % mon

0 comments on commit 79c3cb5

Please sign in to comment.