Hi,
As a novice to Python, I am attempting to complete a Python script to access a cranky Daikin SkyFi API that fails to respond and generates error messages.
I am incorporating a “try/exception” code within the request section, but am struggling with what to do when an exception is raised in comms with the API.
Can I use a “quit()”, “exit()”, or “sys.exit” command within my script without crashing other Python code (including Indigo itself) or is there a more graceful means of ending that script? I’m running this as a file, not as an embedded script.
My script is executed on a regular basis by a schedule, and the results of the script is not time urgent (just the current status of the AC unit) so a retry on each failure is not warranted.
Any advice (or alternative approaches!) gratefully received!
mclass
Sent from my iPad using Tapatalk