1
Vote

raise completions list incomplete

description

Python 2.7

I defined my own exception like this:
class PollNotFound(Exception):
    pass
and when I type raise followed by a space, the completion list that appears doesn't contain my PollNotFound exception.

Strangely it lists some exceptions from the azure package (if I import them). Those have a dunder init on them, but that doesn't seem to make a difference here, as this also doesn't show up in the completions:
class PollNotFound(Exception):
    def __init__(self, message):
        super(PollNotFound, self).__init__(message)

comments

Zooba wrote May 15 at 11:48 PM

This is currently by design - we only display custom exceptions if they have Error in their name.

No reason we can't change the design, but it is working as intended, and hence not a bug.