Re: Modify Python code as newbie

2020-01-17 Thread MRAB
On 2020-01-18 00:34, ron.egg...@ecoation.com wrote: Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, if the publish function fails, it raises an exception. I need to change the code so that when an exception is raised,

modify python code as newbie

2020-01-17 Thread ron . eggler
Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, when the publish function fails, it raises an exception. I need to change the code so that when an exception is raised, instead of giving up, it should retry

Modify Python code as newbie

2020-01-17 Thread ron . eggler
Hi, I'm semi new to Python but need to modify a program that calls the mqtt_client.publish() function from aws iot. Now, if the publish function fails, it raises an exception. I need to change the code so that when an exception is raised, instead of giving up, it should retry. Here's some