Commit d0e54119 authored by Łukasz Nowak's avatar Łukasz Nowak

Silence another print.

parent 12345392
......@@ -58,13 +58,14 @@ def sigterm_handler(signal, frame):
signal.signal(signal.SIGTERM, sigterm_handler)
import logging
def safeRpcCall(function, *args):
retry = 64
while True:
try:
return function(*args)
except (socket.error, xmlrpclib.ProtocolError), e:
print >>sys.stderr, e
logging.warning(e)
pprint.pprint(args, file(function._Method__name, 'w'))
time.sleep(retry)
retry += retry >> 1
......
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