Changeset c2c153b


Ignore:
Timestamp:
Mar 8, 2010 6:53:11 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
9b3627e
Parents:
0b799e0
Message:

another place SSL/HTTP can bedevil us

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/remote_service.py

    r0b799e0 rc2c153b  
    1010from M2Crypto.SSL import SSLError
    1111from ZSI import ParseException, FaultException, SoapWriter
     12
     13# Underlying SOAP comms use this and we need to catch their exceptions
     14import httplib
    1215
    1316from service_error import service_error
     
    364367                print "SSL error contacting %s: %s" % (url, e.message)
    365368                retries += 1
     369            except httplib.HTTPException, e:
     370                print "HTTP error contacting %s: %s" % (url, e.message)
     371                retries +=1
    366372            except Fault, f:
    367373                raise service_error(f.faultCode, f.faultString)
     
    436442                print "SSL error contacting %s: %s" % (url, e.message)
    437443                retries += 1
     444            except httplib.HTTPException, e:
     445                print "HTTP error contacting %s: %s" % (url, e.message)
     446                retries +=1
    438447            except ParseException, e:
    439448                raise service_error(service_error.protocol,
Note: See TracChangeset for help on using the changeset viewer.