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

traceback with github messages #123

Closed
tyll opened this issue Aug 8, 2014 · 1 comment
Closed

traceback with github messages #123

tyll opened this issue Aug 8, 2014 · 1 comment

Comments

@tyll
Copy link
Contributor

tyll commented Aug 8, 2014

There were tracebacks when using fedmsg_meta_fedora_infrastructure which seem
to be related to github messages:

2014-08-07 22:10:25,053: ERROR: Exception: Traceback (most recent call last):
  File "./autosigner.py", line 433, in <module>   
    subtitle = fedmsg.meta.msg2subtitle(msg, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg/meta/__init__.py", line 132, in __wrapper
    return f(msg, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg/meta/__init__.py", line 151, in __wrapper
    return f(msg, processor=processor, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg/meta/__init__.py", line 185, in msg2subtitle
    return processor.subtitle(msg, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg_meta_fedora_infrastructure/github.py", line 76, in subtitle
    user = self._get_user(msg)
  File "/usr/lib/python2.7/site-packages/fedmsg_meta_fedora_infrastructure/github.py", line 34, in _get_user
    user = msg['msg']['commit'].get('author', {}).get('login', {})
AttributeError: 'NoneType' object has no attribute 'get'
2014-08-07 22:10:36,098: ERROR: Exception: Traceback (most recent call last):
  File "./autosigner.py", line 433, in <module>
    subtitle = fedmsg.meta.msg2subtitle(msg, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg/meta/__init__.py", line 132, in __wrapper
    return f(msg, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg/meta/__init__.py", line 151, in __wrapper
    return f(msg, processor=processor, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg/meta/__init__.py", line 185, in msg2subtitle
    return processor.subtitle(msg, **config)
  File "/usr/lib/python2.7/site-packages/fedmsg_meta_fedora_infrastructure/github.py", line 76, in subtitle
    user = self._get_user(msg)
  File "/usr/lib/python2.7/site-packages/fedmsg_meta_fedora_infrastructure/github.py", line 34, in _get_user
    user = msg['msg']['commit'].get('author', {}).get('login', {})
AttributeError: 'NoneType' object has no attribute 'get'
@ralphbean
Copy link
Contributor

This should be fixed by #115. I'll put out a release with it soon.

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

No branches or pull requests

2 participants