Apr-13-2020, 08:03 PM
The timeout happens when you execute the code at line 132 in Klad2.py. Catch the exception (try..except) and decide what to do about it. If this is fairly rare and you should expect an occasional timeout when asking for web data, you can probably just ignore it. More robust error handling would keep check for multiple consecutive failures, report a communication failure and either quit or fall into some sort of low rate limp mode until communication is reestablished.