Commit 12574143 authored by Leigh B Stoller's avatar Leigh B Stoller

Look for return code of 503 instead of 511, when server is too busy.

parent 205151d9
...@@ -253,7 +253,7 @@ def do_method(module, method, params, URI=None, quiet=False, version=None, ...@@ -253,7 +253,7 @@ def do_method(module, method, params, URI=None, quiet=False, version=None,
break break
except xmlrpclib.Fault, e: except xmlrpclib.Fault, e:
if not quiet: print >> sys.stderr, e.faultString if not quiet: print >> sys.stderr, e.faultString
if e.faultCode == 511: if e.faultCode == 503:
print >> sys.stderr, "Will try again in a moment. Be patient!" print >> sys.stderr, "Will try again in a moment. Be patient!"
time.sleep(5.0) time.sleep(5.0)
continue continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment