Fix click module path: use click.utils.UNSET instead of click._utils.UNSET
The correct path is click.utils.UNSET, not click._utils.UNSET. This fixes the AttributeError that was causing all tests to fail.
This commit is contained in:
parent
a6ca4d23bc
commit
f062b89072
1 changed files with 1 additions and 1 deletions
|
|
@ -860,7 +860,7 @@ def _validate_key(ctx: click.Context, param: click.Parameter, value: t.Any) -> t
|
||||||
else:
|
else:
|
||||||
if (
|
if (
|
||||||
cert is not None
|
cert is not None
|
||||||
and cert != click._utils.UNSET
|
and cert != click.utils.UNSET
|
||||||
and not (is_adhoc or is_context)
|
and not (is_adhoc or is_context)
|
||||||
):
|
):
|
||||||
raise click.BadParameter('Required when using "--cert".', ctx, param)
|
raise click.BadParameter('Required when using "--cert".', ctx, param)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue