The following is, of course, not recommended. Those errors are pretty
difficult to suppress because they're coming from C/C++ stdout. If you want
to hide them, contextlib.suppress and contextlib.redirect_stdout both do
not work. However, there is a python package called wurlitzer that does the
trick.
import wurlitzer
with wurlitzer.pipes() as (out, err):
job = gnucash.gnucash_business.Job(book, '1', cust, 'Build Deathstar')
you can also just do:
with wurlitzer.pipes():
job = gnucash.gnucash_business.Job(book, '1', cust, 'Build Deathstar')
and just drop the error messages on the floor until the underlying software
defect is fixed.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.