Closed psavery closed 5 years ago
After a little bit of testing, I think that we need to validate just the first part of the InChI string. I think that as long as the first part is valid, then it won't crash, but return an error if it is invalid.
The first part being: InChI=<num><S or no S>/
If an invalid InChI gets passed to Open Babel, Open Babel throws a
std::logic_error
exception, which causes the girder server to terminate. The output from the girder server is as follows: