Geschrieben April 7, 2015 at 09:567. Apr 2015 Hallo in meinem Python Programm tritt immer wieder ein Timeout auf. Den würde ich gerne abfangen, damit das Programm weiterläuft. Ich finde aber in der Doku keinen Hinweis wie ich die Error-Variable Error.TIMEOUT im Programm anwenden kann. Gibt es dazu irgend ein Beispiel?
Geschrieben April 7, 2015 at 10:427. Apr 2015 from tinkerforge.ip_connection import Error try: ... except Error as e: if e.value == Error.TIMEOUT: print "timeout error" else: print "other error"
Geschrieben April 7, 2015 at 14:477. Apr 2015 Autor Funktioniert. Danke Dachte zuerst da kommt überhaupt nix. Erst nach 1h kam der erste Timeout. Läuft schön weiter.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.