Skip to content

Conversation

@dchiquito
Copy link
Contributor

Fixes #29

The error handling code for `ClickException` assumed that `ctx` is
defined for the exception object, which is true for many of the
subclasses, but not all.

Check for `ctx` before assuming it exists.
This test is passing, I see no reason to keep it disabled.
@FlipperPA FlipperPA merged commit e071568 into django-commons:master Sep 7, 2021
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

Successfully merging this pull request may close these issues.

ClickExceptions with no ctx cause an error

2 participants