PyMISP
PyMISP copied to clipboard
I don't want it to print 'stderr' on the Output
Hi all,
I use PYMISP().add_attribute() to add multiple IOCs to MISP. Here, if there is duplicate state, I see "Stderr: Something went wrong (403): {'saved': False, 'name': 'Could not add Attribute', 'message': 'Could not add Attribute', 'url': '/attributes/add', 'errors': {'value': ['A similar attribute already exists for this event.']}}" in the output. How can I prevent this? So I don't want stderr to be written to the output even if it is duplicate.
Have a look at https://github.com/MISP/MISP/issues/5257