Simple Error Handler Python Code For Rock