Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Oct 22, 2024
1 parent bfa092b commit 384eb6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pynitrokey/cli/nk3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ def set_config(ctx: Context, key: str, value: str, force: bool, dry_run: bool) -
if field.name == key:
field_metadata = field


if field_metadata is None:
print(
"Changing configuration values can have unexpected side effects, including data loss.",
Expand All @@ -197,7 +196,7 @@ def set_config(ctx: Context, key: str, value: str, force: bool, dry_run: bool) -

if not force and not field_metadata.ty.is_valid(value):
raise CliException(
f'Invalid config value for {field}: expected {field_metadata.ty}, got `{value}`. Unknown config values can only be set if the --force/-f flag is set. Aborting.',
f"Invalid config value for {field}: expected {field_metadata.ty}, got `{value}`. Unknown config values can only be set if the --force/-f flag is set. Aborting.",
support_hint=False,
)

Expand Down

0 comments on commit 384eb6a

Please sign in to comment.