Commit 9d3c77b5 by Jonathan Kamens

Fix message that gets printed on reconnect attempts

parent e4432383
......@@ -21,7 +21,7 @@ def safe_mongocall(call):
try:
return call(*args, **kwargs)
except pymongo.errors.AutoReconnect:
print 'AutoReconnecting, try', i
print 'AutoReconnecting, try %d' % i
time.sleep(pow(2, i))
# Try one more time, but this time, if it fails, let the
# exception bubble up to the caller.
......
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