Fix migrate cmd's error handling, missing ValueError catching

This commit is contained in:
rlaphoenix 2022-07-21 16:20:22 +01:00
parent 93f70f73c2
commit fe21bfe88c
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ def migrate(ctx: click.Context, device: Path) -> None:
try:
new_device = Device.migrate(device.read_bytes())
except ConstructError as e:
except (ConstructError, ValueError) as e:
raise click.UsageError(str(e), ctx)
# save