I use add_attribute but i have a error in this func.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 491
- Forks
- 290
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 3
Description
line 779, in add_attribute
if ('errors' in new_attribute and new_attribute['errors'][0] == 403
KeyError: 0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect add_attribute around line 779 and reproduce the reported KeyError: 0 using the issue's example. Determine the structure of new_attribute['errors'] returned by the MISP REST API, then verify that add_attribute handles that response without raising this KeyError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100