Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[copy_duplicate_info] KeyError: 'bug_count'

Open
#2,765 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start with copy_duplicate_info.py at get_bugs and trace into bugbot/bzcleaner.py, especially get_bugs, get_email_data, and send_email at the locations in the traceback. Reproduce the copy_duplicate_info rule's run path and inspect where the expected bug_count data is accessed. Done means the rule completes without the reported KeyError.

Written by the indexing model from the issue text.

Description

Sentry Issue: BUGBOT-17

KeyError: 'bug_count'
(3 additional frame(s) were not displayed)
...
  File "bugbot/bzcleaner.py", line 858, in run
    self.send_email(date=date)
  File "bugbot/bzcleaner.py", line 771, in send_email
    data = self.get_email_data(date)
  File "bugbot/bzcleaner.py", line 689, in get_email_data
    bugs = self.get_bugs(date=date)
  File "copy_duplicate_info.py", line 99, in get_bugs
    bugs = super(CopyDuplicateInfo, self).get_bugs(date=date, bug_ids=bug_ids)
  File "bugbot/bzcleaner.py", line 464, in get_bugs
    ).get_data().wait()

Rule copy_duplicate_info
Dominant language
Python
Stars
69
Forks
93
Avg merge
3d 7h
Merged PRs (30d)
20

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/bugbot

All issues in mozilla/bugbot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.