Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bails out with traceback for TDF Bugzilla #167

Closed
erAck opened this issue Dec 7, 2018 · 1 comment
Closed

Bails out with traceback for TDF Bugzilla #167

erAck opened this issue Dec 7, 2018 · 1 comment
Assignees

Comments

@erAck
Copy link

erAck commented Dec 7, 2018

With the following config section

[tdfbz]
type = bugzilla
prefix = tdf
url = https://bugs.documentfoundation.org/xmlrpc.cgi

did --tdfbz bails out with

Traceback (most recent call last):
  File "/usr/bin/did", line 42, in <module>
    did.cli.main()
  File "/usr/lib/python2.7/site-packages/did/cli.py", line 189, in main
    user_stats.check()
  File "/usr/lib/python2.7/site-packages/did/stats.py", line 136, in check
    stat.check()
  File "/usr/lib/python2.7/site-packages/did/stats.py", line 136, in check
    stat.check()
  File "/usr/lib/python2.7/site-packages/did/stats.py", line 79, in check
    self.fetch()
  File "/usr/lib/python2.7/site-packages/did/plugins/bugzilla.py", line 559, in fetch
    if bug.commented(self.user)]
  File "/usr/lib/python2.7/site-packages/did/plugins/bugzilla.py", line 246, in commented
    if (comment["author"] == user.email and
KeyError: u'author'

On that Bugzilla instance the field name is 'creator' instead.

@psss psss self-assigned this Dec 7, 2018
@psss psss closed this as completed in 3c34c94 Dec 7, 2018
@psss
Copy link
Owner

psss commented Dec 7, 2018

Thanks for reporting this. Let's support both author and creator then. Should be fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants