Add a try catch to the editor