S
sashan
Hi
How do you test if a connect fails. I'm doing this at the moment:
print 'Connect'
try:
self.sp = ServerProxy('http://localhost:5001')
except Fault, f:
print 'fail'
but it doesn't fail. I don't have anything listening on port 5001.
How do you test if a connect fails. I'm doing this at the moment:
print 'Connect'
try:
self.sp = ServerProxy('http://localhost:5001')
except Fault, f:
print 'fail'
but it doesn't fail. I don't have anything listening on port 5001.