Python - pythoncom.com_error handling in Python 3.2.2

前端 未结 2 1864
旧巷少年郎
旧巷少年郎 2021-01-14 13:05

I am using Python 3.2.2, and building a Tkinter interface to do some Active Directory updating. I am having trouble trying to handle pythoncom.com_error exceptions.

2条回答
  •  孤城傲影
    2021-01-14 13:28

    I use this structure (Python 3.5) --

    try: ... except Exception as e: print ("error in level argument", e) ... else: ...

提交回复
热议问题