Re: [Open Babel] Hide "Open Babel Error" error messages in openbabel/python

2021-09-02 Thread Chris Schleiermacher
Hi Noel, openbabel.cvar.obErrorLog.StopLogging() worked for me! Thanks a lot! On 26/08/2021 16:27, Noel O'Boyle wrote: Sorry. Just noticed you did this. To disable messaging entirely, try StopLogging(). Hi, I want to use openbabel conversion in python like shown below. But I do not want t

Re: [Open Babel] Hide "Open Babel Error" error messages in openbabel/python

2021-08-26 Thread Noel O'Boyle
Sorry. Just noticed you did this. To disable messaging entirely, try StopLogging(). On Thu, 26 Aug 2021, 15:24 Noel O'Boyle, wrote: > That code creates a new message handler. You want to get the existing > message handler and change the settings. It's at openbabel.obErrorLog. > > On Thu, 26 Aug

Re: [Open Babel] Hide "Open Babel Error" error messages in openbabel/python

2021-08-26 Thread Noel O'Boyle
That code creates a new message handler. You want to get the existing message handler and change the settings. It's at openbabel.obErrorLog. On Thu, 26 Aug 2021, 14:07 , wrote: > > Hi, > > I want to use openbabel conversion in python like shown below. > But I do not want to get an error message

[Open Babel] Hide "Open Babel Error" error messages in openbabel/python

2021-08-26 Thread theokindb
Hi, I want to use openbabel conversion in python like shown below. But I do not want to get an error message thrown like this, instead I can use the value of the success varible. > ./mwe.py == *** Open Babel Error in ParseSimple SMILES string contains a character