From 9e620c25c53a33dc7b9b9869d3185857bcf9712b Mon Sep 17 00:00:00 2001 From: Jay Rainey Date: Fri, 13 Dec 2013 12:47:43 +0000 Subject: [PATCH] Remove file error checking. Refs #8599. --- .../Framework/Algorithms/src/GeneratePythonScript.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Code/Mantid/Framework/Algorithms/src/GeneratePythonScript.cpp b/Code/Mantid/Framework/Algorithms/src/GeneratePythonScript.cpp index def422709e07..f753dc5e021c 100644 --- a/Code/Mantid/Framework/Algorithms/src/GeneratePythonScript.cpp +++ b/Code/Mantid/Framework/Algorithms/src/GeneratePythonScript.cpp @@ -72,13 +72,6 @@ void GeneratePythonScript::exec() const std::string filename = getPropertyValue("Filename"); std::ofstream file(filename.c_str(), std::ofstream::trunc); - - if (NULL == file) - { - g_log.error("Unable to create file: " + filename); - throw Exception::FileError("Unable to create file: " , filename); - } - // Get the algorithm histories of the workspace. const WorkspaceHistory wsHistory = ws->getHistory();