Skip to content

Commit

Permalink
πŸ› FIX: --conversions read from file (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jul 24, 2023
1 parent 4983369 commit fcab0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rst_to_myst/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def read_conversions(ctx, param, value):
raise click.BadOptionUsage(
"--conversions", f"Error reading conversions file: {exc}", ctx
)
if not isinstance(value, Mapping):
raise click.BadOptionUsage("--conversions", f"Not a mapping: {value!r}", ctx)
if not isinstance(data, Mapping):
raise click.BadOptionUsage("--conversions", f"Not a mapping: {data!r}", ctx)
return data


Expand Down

0 comments on commit fcab0cc

Please sign in to comment.