Skip to content

Commit

Permalink
fix: add missing string interpolation in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke authored and Toilal committed Jan 6, 2021
1 parent 1ed426f commit 3de6f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion click_logging/options.py
Expand Up @@ -31,7 +31,7 @@ def _set_level(ctx, param, value):
x = getattr(logging, value.upper(), None)
if x is None:
raise click.BadParameter(
'Must be CRITICAL, ERROR, WARNING, INFO or DEBUG, not {}'
'Must be CRITICAL, ERROR, WARNING, INFO or DEBUG, not {}'.format(value)
)
logger.setLevel(x)

Expand Down

0 comments on commit 3de6f06

Please sign in to comment.