Skip to content

Commit

Permalink
Check for txt before gz, gz doesn't update regularly enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Melissa Draper committed Aug 6, 2012
1 parent de82f5b commit 79c3cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brain/views.py
Expand Up @@ -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
Expand Down

0 comments on commit 79c3cb5

Please sign in to comment.