Update of /cvsroot/audacity/audacity-src/scripts/mw2html_audacity
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9757

Modified Files:
        mw2html.py 
Log Message:
Server is issuing "403 Forbidden", sometimes so allow a retry.  Add a little 
indentation to messages to allow quicker scanning.

Index: mw2html.py
===================================================================
RCS file: /cvsroot/audacity/audacity-src/scripts/mw2html_audacity/mw2html.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- mw2html.py  29 Nov 2009 18:05:07 -0000      1.12
+++ mw2html.py  16 Jan 2010 01:42:17 -0000      1.13
@@ -536,17 +536,25 @@
         r = conn.getresponse()
         print 'Status',r.status,r.reason,'accessing',rel_url
         if r.status == 404:
-          print "it's not possible to recover this error."
+          print "   it's not possible to recover this error."
           errors += 1
           return ('','')
         if r.status == 500:
-          print "eventually this error might be recovered. let's try again."
-          print 'reconnecting...'
+          print "   eventually this error might be recovered. let's try again."
+          print '   reconnecting...'
+          conn = httplib.HTTPConnection(domain)
+          attempts += 1
+          continue
+        if r.status == 403:
+          print "   that shouldn't happen, but let's try again anyway."
+          print '   reconnecting...'
           conn = httplib.HTTPConnection(domain)
           attempts += 1
           continue
         if attempts != 0:
           recovered = True
+        if r.status != 200:
+          print "      Status other than 200, 404, 500, 403. It is: ",r.status
         success = True
         
       except httplib.HTTPException, e:


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to