Report question

Question: How to notify myself when a python script runs into an error or just stops?