Why does my code only work once? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Why does my code only work once? (/thread-20820.html) |
Why does my code only work once? - NonSufficitOrbis - Sep-01-2019 I have a little python script that checks my current IPv4 DNS Server address. It's working just fine. I use the wmi package. Now: I use this script in Kodi. And first time it runs, it runs perfectly. But the second time I get a weird error. Why does my code work the first time, but not the following attempts? Hope you guys can help me. I'm lost. my script: Quote:import wmi the error: Quote: Error Type: <type 'exceptions.AttributeError'> |