For reference of how Zeep works, see the first section of boilerplate code here: https://paultursan.com/2016/04/getting-started-with-python-cucm-axl-api-programming/
The code
except requests.exceptions.ConnectionError
works if the IP / FQDN doesn't even exist or if the session.verify is set to true and there is a certificate error (as expected). However, it does NOT capture errors due to incorrect credentials for the CUCM session object.
Is there a simple way using Python / Zeep to verify the connection was successful (e.g. actually logged in and actually able to execute commands)?
I could just try a get command with a user / device that should always exist, but that approach seems a bit hacky (what if the device is renamed / removed or the command syntax changes in a later version). I am using CUCM 12.5, for reference.