diff --git a/pywidevine/main.py b/pywidevine/main.py index 04cd12e..b2564d6 100644 --- a/pywidevine/main.py +++ b/pywidevine/main.py @@ -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