Python With Error Handling In React Js