Trying to find the namespace location for _ctypes.COMError

I’m trying to find the namespace location of _ctypes.COMError for exception handling. The package I’m using is pyvda, and pyvda’s required packages are comtypes, and pywin32 . Anyone have an idea where it’d be located.

This is a windows-only exception, so you should conditionally import it from _ctypes. Accessing internal modules is not perfect, but it isn’t exposes anywhere else in the stdlib from what I can tell. You could open up an issue requesting that it is exposed in ctypes on windows systems.

One of these ought to have wrapped the exception type for you, I should think.

I was thinking that same thing but I can’t find it. I want to be able to import it so I can contributil.suppress the exception.

Maybe the pyvda issue tracker can help?