Error Handling in Python with SUDS

前端 未结 4 1010
误落风尘
误落风尘 2020-12-15 22:21

I have been trying to control a camera through a wsdl file using SUDS. I have got the code working but I want to place error handling into the script. I have tried different

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 23:22

    If you handled all exceptions and errors in your code and your code is working fine but still you are getting below message with your correct output.

    Msg : "No handlers could be found for logger suds.client "

    Then a simple solution is to add this line

    logging.getLogger('suds.client').setLevel(logging.CRITICAL)
    

    in yourclient.py file just after all import statement.

提交回复
热议问题