Commit d05fffac authored by Tiago Peixoto's avatar Tiago Peixoto

Properly raise IOError when a parse error occurs in graph_io.cc

parent 55bee9c1
......@@ -544,7 +544,10 @@ python::tuple GraphInterface::ReadFromFile(string file, python::object pfile,
{
throw IOException("error reading from file '" + file + "':" + e.what());
}
catch (parse_error &e)
{
throw IOException("error reading from file '" + file + "':" + e.what());
}
};
template <class IndexMap>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment