try:
line = mc_tc_get.get("test_pic")
#print "4:line", line
if line is None:
print "None1"
return path, None
line = line.rstrip("\n")
if line == "":
print "None2"
return path, None
tmp = line.split()
if(len(tmp)<7):
print "None3"
return path, None
except Exception as e:
print e
print e 报的这个错:invalid literal for int() with base 10: '\x03\xda\x01'
建议先放开try except,看下哪里报错。