Python script giving error & crashing - want it to restart after crash

Job ID: 31292101

Budget: $10 – $30 USD

I have a python script which runs in a continuous loop - it uses imaplib to check an email account.

If an email comes in with a specified keyword it does a command. However, sometimes I get the attached errors after a certain amount of time.


I would be happy if the script just simply restarted itself when a traceback error occurred, or if the root cause of the errors can be fixed that would be acceptable, too.
Related categories: PHP Python Linux Software Architecture Raspberry Pi