Skip to content

Commit

Permalink
BadParameter takes str as input
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed Mar 31, 2024
1 parent 75e80c2 commit bd3b547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todoman/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _validate_start_date_param(ctx, param, val) -> tuple[bool, datetime] | None:
dt = ctx.formatter.parse_datetime(val[1])
return is_before, dt
except ValueError as e:
raise click.BadParameter(e) from None
raise click.BadParameter(str(e)) from None


def _validate_startable_param(ctx, param, val):
Expand Down

0 comments on commit bd3b547

Please sign in to comment.