PyMISP icon indicating copy to clipboard operation
PyMISP copied to clipboard

I don't want it to print 'stderr' on the Output

Open yilmazdincer opened this issue 2 years ago • 1 comments

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.

yilmazdincer avatar Apr 28 '23 10:04 yilmazdincer

Have a look at https://github.com/MISP/MISP/issues/5257

github-germ avatar Apr 28 '23 10:04 github-germ