python - No handlers could be found for logger “paramiko.transport” with lost connection -
use fabric sudo() , meet error message !
"no handlers found logger paramiko" file "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 603, in connect raise networkerror(msg, e)
i meet same issue, think network not connect issue , use try syntax wait network ok.
the following code retry send sudo() command , not show error when network connection normally.
loop = 10 in range(0,loop) try: sudo("ls -al") except exception, exc : print "exception %s, exc %s"(exception, exc) print "i: %s in %s"%(i,loop)
Comments
Post a Comment