Python script fix

Job ID: 31118550

Budget: $10 – $30 USD

I have 2 python scripts that listens to MQTT and logs messages .The script works fine but after some time it stops with error

File "/usr/local/lib/python3.6/site-packages/mysql/connector/connection.py", line 809, in cursor
raise errors.OperationalError("MySQL Connection not available.")

I believe this is a mysql time out issue. We are looking for someone who can fix this error , so that the script runs continuously.
Related categories: Python Linux Software Architecture MySQL MQTT