AttributeError: 'NoneType' when I catch a Shell response with Python

前端 未结 0 1905
深忆病人
深忆病人 2021-02-13 05:38

I am running a shell script and I know the response is empty. I am not able to handle this empty response: I\'ve tried, resp==None, resp==\'\', resp.strip()==\'\', resp==\'Nonet

相关标签:
回答
  • 消灭零回复
提交回复
热议问题