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

BugsyException not raised when performing .get() on invalid/inaccesible bugs #24

Closed
edmorley opened this issue Sep 25, 2015 · 0 comments

Comments

@edmorley
Copy link
Contributor

eg:

import bugsy
bz = bugsy.Bugsy()
bz.get(111111111111111111)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/Ed/.virtualenvs/of/lib/python2.7/site-packages/bugsy/bugsy.py", line 138, in get
    return Bug(self, **bug['bugs'][0])
KeyError: 'bugs'

Expected:
Some instance of BugsyException, that surfaces the "message" attribute returned from https://bugzilla.mozilla.org/rest/bug/111111111111111111

This would also affect security bugs.

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

1 participant