[pyagent] handle error conditions when checking to log or not
[pyagent] handle error conditions when checking to log or not

rancherio/cattle,rancherio/cattle,imikushin/cattle,stresler/cattle,ubiquityhosting/rancher_cattle,cjellick/cattle,cjellick/cattle,dx9/cattle,alena1108/cattle,vincent99/cattle,wlan0/cattle,dx9/cattle,imikushin/cattle,cloudnautique/cattle,kaos/cattle,sonchang/cattle,alena1108/cattle,willseward/cattle,cloudnautique/cattle,kaos/cattle,hibooboo2/cattle,OnePaaS/cattle,ubiquityhosting/rancher_cattle,rancher/cattle,willseward/cattle,sonchang/cattle,cloudnautique/cloud-cattle,vincent99/cattle,cjellick/cattle,gpndata/cattle,alena1108/cattle,wlan0/cattle,sonchang/cattle,willseward/cattle,rancher/cattle,willseward/cattle,OnePaaS/cattle,dx9/cattle,prachidamle/cattle,jimengliu/cattle,stresler/cattle,jimengliu/cattle,rancherio/cattle,gpndata/cattle,prachidamle/cattle,cloudnautique/cattle,Cerfoglg/cattle,cjellick/cattle,Cerfoglg/cattle,hibooboo2/cattle,hibooboo2/cattle,gpndata/cattle,cloudnautique/cloud-cattle,kaos/cattle,wlan0/cattle,stresler/cattle,cloudnautique/cattle,cloudnautique/cloud-cattle,yasker/cattle,ubiquityhosting/rancher_cattle,rancher/cattle,sonchang/cattle,prachidamle/cattle,prachidamle/cattle,dx9/cattle,gpndata/cattle,jimengliu/cattle,cloudnautique/cloud-cattle,imikushin/cattle,yasker/cattle,imikushin/cattle,vincent99/cattle,yasker/cattle,OnePaaS/cattle,ubiquityhosting/rancher_cattle,OnePaaS/cattle,Cerfoglg/cattle