I am not an expert in Python, however i have made some script which runs automatically after every 1 minute, however sometime it stop automatically while throwing some error and